gnu: snakemake-5: Patch version string.
* gnu/packages/python-xyz.scm (snakemake-5)[arguments]: Add phase 'patch-version. Change-Id: I647625e9d26b2ee06274a0c5bb844ccb87035537
This commit is contained in:
parent
8d14b1cbb6
commit
9692e2bb7c
1 changed files with 8 additions and 0 deletions
|
@ -13227,6 +13227,14 @@ approach.")
|
||||||
(substitute* "snakemake/dag.py"
|
(substitute* "snakemake/dag.py"
|
||||||
(("\"job\": rule,")
|
(("\"job\": rule,")
|
||||||
"\"job\": rule.name,"))))
|
"\"job\": rule.name,"))))
|
||||||
|
(add-after 'unpack 'patch-version
|
||||||
|
(lambda _
|
||||||
|
(substitute* "setup.py"
|
||||||
|
(("version=versioneer.get_version\\(\\)")
|
||||||
|
(format #f "version=~s" #$version)))
|
||||||
|
(substitute* '("snakemake/_version.py"
|
||||||
|
"versioneer.py")
|
||||||
|
(("0\\+unknown") #$version))))
|
||||||
;; For cluster execution Snakemake will call Python. Since there is
|
;; For cluster execution Snakemake will call Python. Since there is
|
||||||
;; no suitable PYTHONPATH set, cluster execution will fail. We fix
|
;; no suitable PYTHONPATH set, cluster execution will fail. We fix
|
||||||
;; this by calling the snakemake wrapper instead.
|
;; this by calling the snakemake wrapper instead.
|
||||||
|
|
Reference in a new issue