aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-11-03 00:10:36 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-11-03 00:12:46 +0100
commit1d84500a728dab29989e615602889c32868e9a50 (patch)
tree3c474a5a7d0215b2d5a40c638ce3791a3ace8503 /gnu/packages
parentada53b1d50b3c141cdd2e78c6adddafdd33fba74 (diff)
downloadgnu-guix-1d84500a728dab29989e615602889c32868e9a50.tar
gnu-guix-1d84500a728dab29989e615602889c32868e9a50.tar.gz
gnu: conda: Fix environment scripts.
* gnu/packages/package-management.scm (conda)[arguments]: Add phase "undo-wrap".
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/package-management.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index af0ef1043d..87032090cc 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -732,7 +732,17 @@ This package provides Conda as a library.")
;; And it aborts if the directory doesn't exist.
(mkdir-p target)
(zero? (system* "python" "utils/setup-testing.py" "install"
- (string-append "--prefix=" out))))))))))
+ (string-append "--prefix=" out))))))
+ ;; The "activate" and "deactivate" scripts don't need wrapping.
+ ;; They also break when they are renamed.
+ (add-after 'wrap 'undo-wrap
+ (lambda* (#:key outputs #:allow-other-keys)
+ (with-directory-excursion (string-append (assoc-ref outputs "out") "/bin/")
+ (delete-file "deactivate")
+ (rename-file ".deactivate-real" "deactivate")
+ (delete-file "activate")
+ (rename-file ".activate-real" "activate")
+ #t)))))))
(description
"Conda is a cross-platform, Python-agnostic binary package manager. It
is the package manager used by Anaconda installations, but it may be used for