Skip to content

Commit d63f224

Browse files
committed
avoid 0.0.0 version for carputils 20200915 (cfr. easybuilders/easybuild-easyblocks#2367)
1 parent 766d895 commit d63f224

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

easybuild/easyconfigs/c/carputils/carputils-20200915-foss-2020a-Python-3.8.2.eb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ dependencies = [
2222

2323
use_pip = True
2424

25+
# version restrictions are too strict, so strip them out
26+
local_carputils_preinstallopts = "sed -i 's/[=><]=[0-9].*//g' requirements.txt && "
27+
# inject proper version, to prevent installing carputils with 0.0.0 as version...
28+
local_carputils_preinstallopts += """sed -i 's/ description=/ version="0.0.1-pre", description=/g' setup.py && """
29+
2530
exts_list = [
2631
('doxypypy', '0.8.8.6', {
2732
'checksums': ['627571455c537eb91d6998d95b32efc3c53562b2dbadafcb17e49593e0dae01b'],
@@ -36,7 +41,7 @@ exts_list = [
3641
'source_tmpl': 'carputils-%s.tar.gz' % local_commit,
3742
'checksums': ['695af109e4b23797ac94a86b49ce5a98b4d002dc094b062927b53efa72f822f0'],
3843
# version restrictions are too strict, so strip them out
39-
'preinstallopts': "sed -i 's/[=>]=[0-9].*//g' requirements.txt && ",
44+
'preinstallopts': local_carputils_preinstallopts,
4045
}),
4146
]
4247

0 commit comments

Comments
 (0)