[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/104: guix: build all Python packages with --single-version-externally
From: |
Hartmut Goebel |
Subject: |
03/104: guix: build all Python packages with --single-version-externally-managed. |
Date: |
Tue, 15 Nov 2016 21:36:58 +0000 (UTC) |
htgoebel pushed a commit to branch python-build-system
in repository guix.
commit 7db40bce58e149ecb541d295e01cfbfe953d39a3
Author: Hartmut Goebel <address@hidden>
Date: Wed Sep 28 10:42:35 2016 +0200
guix: build all Python packages with --single-version-externally-managed.
This requires setuptools to be installed together with python, which is
the case for Python 3 anyway and which we do for our build of Python 2
(see last commit).
* guix/build/python-build-system.scm (install): Add
"--single-version-externally-managed" and "--root=/" to params to be
passed to call-setuppy. Remove thus needless manipulation of
PYTHONPATH. Remove now unused argument "inputs".
---
guix/build/python-build-system.scm | 23 +++++++----------------
1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a/guix/build/python-build-system.scm
b/guix/build/python-build-system.scm
index e906e60..2424fed 100644
--- a/guix/build/python-build-system.scm
+++ b/guix/build/python-build-system.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2013 Andreas Enge <address@hidden>
;;; Copyright © 2013 Nikita Karetnikov <address@hidden>
;;; Copyright © 2015 Mark H Weaver <address@hidden>
+;;; Copyright © 2016 Hartmut Goebel <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -60,25 +61,15 @@
(major+minor (take components 2)))
(string-join major+minor ".")))
-(define* (install #:key outputs inputs (configure-flags '())
+(define* (install #:key outputs (configure-flags '())
#:allow-other-keys)
"Install a given Python package."
(let* ((out (assoc-ref outputs "out"))
- (params (append (list (string-append "--prefix=" out))
- configure-flags))
- (python-version (get-python-version (assoc-ref inputs "python")))
- (old-path (getenv "PYTHONPATH"))
- (add-path (string-append out "/lib/python" python-version
- "/site-packages/")))
- ;; create the module installation directory and add it to PYTHONPATH
- ;; to make setuptools happy
- (mkdir-p add-path)
- (setenv "PYTHONPATH"
- (string-append (if old-path
- (string-append old-path ":")
- "")
- add-path))
- (call-setuppy "install" params)))
+ (params (append (list (string-append "--prefix=" out)
+ "--single-version-externally-managed"
+ "--root=/")
+ configure-flags)))
+ (call-setuppy "install" params)))
(define* (wrap #:key inputs outputs #:allow-other-keys)
(define (list-of-files dir)
- branch python-build-system created (now d464917), Hartmut Goebel, 2016/11/15
- 01/104: guix: python-build-system: Fix an outdated comment., Hartmut Goebel, 2016/11/15
- 04/104: guix: python-build-system: Import setuptools before calling `setup.py'., Hartmut Goebel, 2016/11/15
- 06/104: guix: python-build-system: Add helpers for getting and setting PYTHONPATH., Hartmut Goebel, 2016/11/15
- 02/104: gnu: ensure pip and setuptools are installed even for Python 2., Hartmut Goebel, 2016/11/15
- 07/104: guix: python-build-system: Delete .egg-info file created in phase check., Hartmut Goebel, 2016/11/15
- 05/104: guix: python-build-system: Add option "#:use-setuptools?" (default true)., Hartmut Goebel, 2016/11/15
- 03/104: guix: build all Python packages with --single-version-externally-managed.,
Hartmut Goebel <=
- 11/104: lint: more packages to probably be a native input., Hartmut Goebel, 2016/11/15
- 18/104: gnu: Remove needless inputs python-pip and python2-pip., Hartmut Goebel, 2016/11/15
- 08/104: guix: python-build-system: Add background about Python installation methods., Hartmut Goebel, 2016/11/15
- 09/104: gnu: python-2.7: Add all guix prefixes in PYTHONPATH to site-prefixes., Hartmut Goebel, 2016/11/15
- 22/104: gnu: Fix python inputs, part 3: all native-inputs become propagated-inputs., Hartmut Goebel, 2016/11/15
- 15/104: gnu: Remove python-setuptools and python2-setuptools from inputs (part 3), Hartmut Goebel, 2016/11/15
- 10/104: guix: Add lint-checker for packages which should be no inputs at all., Hartmut Goebel, 2016/11/15
- 29/104: gnu: python-ccm: Add missing input python-psutil., Hartmut Goebel, 2016/11/15
- 27/104: gnu: python-pytest-cov: Use upstream options for testing., Hartmut Goebel, 2016/11/15
- 21/104: gnu: Fix python inputs, part 2: all inputs become native-inputs., Hartmut Goebel, 2016/11/15