GNU bug report logs -
#27461
[PATCH] gnu: Add z3.
Previous Next
Full log
Message #20 received at 27461 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/python.scm (python2-z3): New variable.
---
gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6e1e289e9..b06cbd218 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15512,3 +15512,33 @@ pure Python module.")
(define-public python2-rencode
(package-with-python2 python-rencode))
+
+(define-public python2-z3
+ (package
+ (inherit z3)
+ (name "python2-z3")
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("z3" ,z3)))
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'prepare
+ (lambda* (#:key inputs #:allow-other-keys)
+ (system* "python" "scripts/mk_make.py")
+ (copy-file "build/python/z3/z3core.py"
+ "src/api/python/z3/z3core.py")
+ (copy-file "build/python/z3/z3consts.py"
+ "src/api/python/z3/z3consts.py")
+ (chdir "src/api/python")
+ (substitute* "z3/z3core.py"
+ (("_dirs = \\[")
+ (string-append "_dirs = ['" (assoc-ref inputs "z3")
+ "/lib', ")))
+ (substitute* "MANIFEST.in"
+ ((".*") ""))
+ (substitute* "setup.py"
+ (("self.execute\\(.*") "\n")
+ (("scripts=.*") "\n"))
+ #t)))))))
--
2.13.2
This bug report was last modified 7 years and 279 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.