Skip to content

Commit

Permalink
WIP easyconfig for PopGen (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Mar 30, 2023
1 parent 1f61ff3 commit ab8dd70
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
52 changes: 52 additions & 0 deletions 119_PopGen/PopGen.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
easyblock = 'Tarball'

name = 'PopGen'
version = '1.1'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://www.mobilityanalytics.org/popgen.html'
description = "Synthetic Population Generator"

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

source_urls = ['https://www.mobilityanalytics.org/uploads/5/0/5/4/5054275/']
sources = ['popgen_%(version_major)s_%(version_minor)s.zip']
checksums = ['db72c69250b129d70291feba773048eb555c22245b2715d0356a208bb4e6ba6c']

dependencies = [
('Python', '2.7.18'),
('SciPy-bundle', '2021.10', versionsuffix),
('libxml2', '2.9.10'), # for lxml
('libxslt', '1.1.34'), # for lxml
('mysqlclient', '1.4.6', versionsuffix),
]

exts_default_options = {
'source_urls': [PYPI_SOURCE],
'download_dep_fail': True,
'use_pip': True,
}
exts_defaultclass = 'PythonPackage'

exts_list = [
('pp', '1.6.5', {
'checksums': ['469b7865c06517fe0dead3f51632274d350b682122df8ac8f3b69c75e5150626'],
}),
('lxml', '4.9.2', {
'checksums': ['2455cfaeb7ac70338b3257f41e21f0724f4b5b0c0e7702da67ee6c3640835b67'],
}),
]

sanity_check_paths = {
'files': ['popgen_manager.py'],
'dirs': ['command_line_algorithm', 'synthesizer_algorithm'],
}

sanity_check_commands = [
"python $EBROOTPOPGEN/popgen_manager.py --help",
"export PYTHONNOUSERSITE=1 && python -m pip check",
]

modextrapaths = {'PYTHONPATH': ['', 'lib/python%(pyshortver)s/site-packages']}

moduleclass = 'tools'
25 changes: 25 additions & 0 deletions 119_PopGen/mysqlclient-1.4.6-foss-2021b-Python-2.7.18.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
easyblock = 'PythonPackage'

name = 'mysqlclient'
version = '1.4.6'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://github.com/PyMySQL/mysqlclient-python'
description = """Python interface to MySQL"""

toolchain = {'name': 'GCC', 'version': '11.2.0'}

sources = [SOURCE_TAR_GZ]
checksums = ['f3fdaa9a38752a3b214a6fe79d7cae3653731a53e577821f9187e67cbecb2e16']

dependencies = [
('Python', '2.7.18'),
('MariaDB', '10.6.4'),
]

# enable static linking to fix problem with unresolved symbols in mysql.so
prebuildopts = "sed -i 's/static = False/static = True/g' site.cfg && "

options = {'modulename': 'MySQLdb'}

moduleclass = 'lib'

0 comments on commit ab8dd70

Please sign in to comment.