Skip to content

Commit

Permalink
Merge pull request #10627 from boegel/fix_Mako_2016_2017
Browse files Browse the repository at this point in the history
fix Mako easyconfigs using a 2016 & 2017 toolchain
  • Loading branch information
verdurin authored May 13, 2020
2 parents bd94c7a + 8ae4692 commit 2f884aa
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 59 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.4'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'foss', 'version': '2016b'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059']

dependencies = [('Python', '2.7.12')]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

# pip 8.1.2 (included with Python 2.7.12) doesn't support 'pip check' yet
sanity_pip_check = False

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.4'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'intel', 'version': '2016b'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

dependencies = [('Python', '2.7.12')]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

# pip 8.1.2 (included with Python 2.7.12) doesn't support 'pip check' yet
sanity_pip_check = False

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.6'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'foss', 'version': '2017a'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = [
'48559ebd872a8e77f92005884b3d88ffae552812cdf17db6768e5c3be5ebbe0d', # Mako-1.0.6.tar.gz
]

dependencies = [('Python', '2.7.13')]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['48559ebd872a8e77f92005884b3d88ffae552812cdf17db6768e5c3be5ebbe0d'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

sanity_pip_check = True

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.6'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'intel', 'version': '2017a'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

dependencies = [('Python', '2.7.13')]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['48559ebd872a8e77f92005884b3d88ffae552812cdf17db6768e5c3be5ebbe0d'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

sanity_pip_check = True

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.7'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'foss', 'version': '2017b'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae']

dependencies = [('Python', '2.7.14')]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

sanity_pip_check = True

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.7'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'fosscuda', 'version': '2017b'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae']

dependencies = [('Python', '2.7.14')]

use_pip = True
download_dep_fail = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg-info'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

sanity_pip_check = True

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.7'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'intel', 'version': '2017b'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae']

dependencies = [('Python', '2.7.14')]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

sanity_pip_check = True

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
easyblock = 'PythonPackage'
easyblock = 'PythonBundle'

name = 'Mako'
version = '1.0.7'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.makotemplates.org'
homepage = 'https://www.makotemplates.org'
description = """A super-fast templating language that borrows the best ideas from the existing templating languages"""

toolchain = {'name': 'intelcuda', 'version': '2017b'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae']

dependencies = [('Python', '2.7.14')]

use_pip = True
download_dep_fail = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

exts_list = [
('MarkupSafe', '1.1.1', {
'checksums': ['29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b'],
}),
(name, version, {
'checksums': ['4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae'],
}),
]

sanity_check_paths = {
'files': ['bin/mako-render'],
'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg-info'],
'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

sanity_pip_check = True

moduleclass = 'devel'
5 changes: 4 additions & 1 deletion test/easyconfigs/easyconfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ def check_python_packages(self, changed_ecs, added_ecs_filenames):
# These packages do not support installation with 'pip'
whitelist_pip = [r'MATLAB-Engine-.*', r'PyTorch-.*', r'Meld-.*']

whitelist_pip_check = [r'Mako-1.0.4.*Python-2.7.12.*']

failing_checks = []

for ec in changed_ecs:
Expand Down Expand Up @@ -609,7 +611,8 @@ def check_python_packages(self, changed_ecs, added_ecs_filenames):
if use_pip and easyblock in ['PythonBundle', 'PythonPackage']:
sanity_pip_check = ec.get('sanity_pip_check') or exts_default_options.get('sanity_pip_check')
if not sanity_pip_check and not any(re.match(regex, ec_fn) for regex in whitelist_pip):
failing_checks.append("sanity_pip_check is enabled in %s" % ec_fn)
if not any(re.match(regex, ec_fn) for regex in whitelist_pip_check):
failing_checks.append("sanity_pip_check is enabled in %s" % ec_fn)

self.assertFalse(failing_checks, '\n'.join(failing_checks))

Expand Down

0 comments on commit 2f884aa

Please sign in to comment.