[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
67/163: gnu: freecad: Wrap with the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
67/163: gnu: freecad: Wrap with the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:33 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit e67d0c9cdce8f596a1ffd59dfc90d975dabb2404
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 00:55:14 2021 -0500
gnu: freecad: Wrap with the new Guix PYTHONPATH.
* gnu/packages/engineering.scm (freecad)[phases]{wrap-pythonpath}: Wrap with
the new Guix PYTHONPATH. Delete trailing #t.
{restore-pythonpath}: Delete phase.
[inputs]: Rename python-wrapper label from python-wrapper to python.
---
gnu/packages/engineering.scm | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 4c86047..e9f017f 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2551,7 +2551,7 @@ full programmatic control over your models.")
("python-pyside-2" ,python-pyside-2)
("python-shiboken-2" ,python-shiboken-2)
("python-pivy" ,python-pivy)
- ("python-wrapper" ,python-wrapper)
+ ("python" ,python-wrapper)
("qtbase" ,qtbase)
("qtsvg" ,qtsvg)
("qtx11extras" ,qtx11extras)
@@ -2562,7 +2562,12 @@ full programmatic control over your models.")
("xerces-c" ,xerces-c)
("zlib" ,zlib)))
(arguments
- `(#:tests? #f
+ `(#:imported-modules ,(cons '(guix build python-build-system)
+ %qt-build-system-modules)
+ #:modules ((guix build qt-build-system)
+ ((guix build python-build-system) #:select
(guix-pythonpath))
+ (guix build utils))
+ #:tests? #f
#:configure-flags
(list
"-DBUILD_QT5=ON"
@@ -2587,18 +2592,13 @@ full programmatic control over your models.")
"/include/shiboken2"))
#:phases
(modify-phases %standard-phases
- (add-before 'configure 'restore-pythonpath
- (lambda _
- (substitute* "src/Main/MainGui.cpp"
- (("_?putenv\\(\"PYTHONPATH=\"\\);") ""))
- #t))
(add-after 'install 'wrap-pythonpath
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (pythonpath (guix-pythonpath inputs)))
(wrap-program (string-append out "/bin/FreeCAD")
- (list "PYTHONPATH"
- 'prefix (list (getenv "PYTHONPATH")))))
- #t)))))
+ (list pythonpath
+ 'prefix (list (getenv pythonpath))))))))))
(home-page "https://www.freecadweb.org/")
(synopsis "Your Own 3D Parametric Modeler")
(description
- 162/163: gnu: python-webassets: Do not set PYTHONPATH., (continued)
- 162/163: gnu: python-webassets: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 147/163: gnu: python-pyelftools: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 115/163: gnu: orca: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 82/163: gnu: inkscape-1.0: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 114/163: gnu: gnome-todo: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 123/163: gnu: python-typed-ast: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 137/163: gnu: python-flake8-polyfill: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 138/163: gnu: python-msgpack: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 19/163: gnu: python-screed: Adjust following Python build system changes., guix-commits, 2021/01/25
- 43/163: gnu: ghmm: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 67/163: gnu: freecad: Wrap with the new Guix PYTHONPATH.,
guix-commits <=
- 61/163: gnu: python-django-appconf: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 40/163: gnu: manuskript: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 72/163: gnu: python-hyperkitty: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 79/163: gnu: gdk-pixbuf: Update to 2.42.2., guix-commits, 2021/01/25
- 142/163: gnu: python-libcst: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 140/163: gnu: python-tblib: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 158/163: gnu: python-jsonpickle: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 159/163: gnu: python-databricks-cli: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 161/163: gnu: python-flask-wtf: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 49/163: gnu: cups: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25