[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
156/361: gnu: conda: Reindent.
From: |
guix-commits |
Subject: |
156/361: gnu: conda: Reindent. |
Date: |
Fri, 22 Nov 2024 06:00:31 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit a9ff98ef125c7e6c6a7748705f6da4031bb177d6
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Fri May 10 00:53:17 2024 +0200
gnu: conda: Reindent.
* gnu/packages/package-management.scm (conda): Reindent.
Change-Id: I954ec137b4dc39cd561da9ed0e583991bb3de1db
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/package-management.scm | 112 ++++++++++++++++++------------------
1 file changed, 56 insertions(+), 56 deletions(-)
diff --git a/gnu/packages/package-management.scm
b/gnu/packages/package-management.scm
index e38975d69b..f12eb79ac3 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -1160,8 +1160,8 @@ extracting, creating, and converting between formats.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/conda/conda")
- (commit version)))
+ (url "https://github.com/conda/conda")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
(base32
@@ -1208,60 +1208,60 @@ extracting, creating, and converting between formats.")
"test_make_entry_point")
" and not ")))
#:phases
- #~(modify-phases %standard-phases
- ;; The default version of pytest does not support these options.
- (add-after 'unpack 'use-older-pytest
- (lambda _
- (substitute* "setup.cfg"
- (("--xdoctest-.*") ""))))
- (add-after 'unpack 'fix-ruamel-yaml-dependency
- (lambda _
- (substitute* "setup.py"
- (("ruamel_yaml_conda") "ruamel.yaml"))))
- (add-after 'unpack 'correct-python-executable-name
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((python (assoc-ref inputs "python-wrapper")))
- (substitute* "conda/core/initialize.py"
- (("python_exe = join")
- (format #f "python_exe = \"~a/bin/python\" #"
- python))))))
- (add-after 'unpack 'do-not-use-python-root-as-prefix
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (python (assoc-ref inputs "python-wrapper")))
- (substitute* "tests/core/test_initialize.py"
- (("\"\"\"\\) % conda_prefix")
- (format #f "\"\"\") % ~s" python))
- (("CONDA_PYTHON_EXE \"%s\"' % join\\(conda_prefix")
- (format #f "CONDA_PYTHON_EXE \"%s\"' % join(~s"
- python))
- (("conda_prefix = abspath\\(sys.prefix\\)")
- (format #f "conda_prefix = abspath(~s)" out)))
- (substitute* "conda/base/context.py"
- (("os.chdir\\(sys.prefix\\)")
- (format #f "os.chdir(~s)" out))
- (("sys.prefix, '.condarc'")
- (format #f "~s, '.condarc'" out))
- (("return abspath\\(sys.prefix\\)")
- (format #f "return abspath(~s)" out))
- (("os.path.join\\(sys.prefix, bin_dir, exe\\)")
- (format #f "\"~a/bin/conda\"" out))
- (("'CONDA_EXE', sys.executable")
- (format #f "'CONDA_EXE', \"~a/bin/conda\"" out))))))
- (add-before 'build 'create-version-file
- (lambda _
- (with-output-to-file "conda/.version"
- (lambda () (display #$version)))))
- (add-after 'create-entrypoints 'init
- ;; This writes a whole bunch of shell initialization files to the
- ;; prefix directory. Many features of conda can only be used after
- ;; running "conda init".
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (setenv "HOME" "/tmp")
- (invoke (string-append (assoc-ref outputs "out")
- "/bin/conda")
- "init"))))))
+ #~(modify-phases %standard-phases
+ ;; The default version of pytest does not support these options.
+ (add-after 'unpack 'use-older-pytest
+ (lambda _
+ (substitute* "setup.cfg"
+ (("--xdoctest-.*") ""))))
+ (add-after 'unpack 'fix-ruamel-yaml-dependency
+ (lambda _
+ (substitute* "setup.py"
+ (("ruamel_yaml_conda") "ruamel.yaml"))))
+ (add-after 'unpack 'correct-python-executable-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((python (assoc-ref inputs "python-wrapper")))
+ (substitute* "conda/core/initialize.py"
+ (("python_exe = join")
+ (format #f "python_exe = \"~a/bin/python\" #"
+ python))))))
+ (add-after 'unpack 'do-not-use-python-root-as-prefix
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (python (assoc-ref inputs "python-wrapper")))
+ (substitute* "tests/core/test_initialize.py"
+ (("\"\"\"\\) % conda_prefix")
+ (format #f "\"\"\") % ~s" python))
+ (("CONDA_PYTHON_EXE \"%s\"' % join\\(conda_prefix")
+ (format #f "CONDA_PYTHON_EXE \"%s\"' % join(~s"
+ python))
+ (("conda_prefix = abspath\\(sys.prefix\\)")
+ (format #f "conda_prefix = abspath(~s)" out)))
+ (substitute* "conda/base/context.py"
+ (("os.chdir\\(sys.prefix\\)")
+ (format #f "os.chdir(~s)" out))
+ (("sys.prefix, '.condarc'")
+ (format #f "~s, '.condarc'" out))
+ (("return abspath\\(sys.prefix\\)")
+ (format #f "return abspath(~s)" out))
+ (("os.path.join\\(sys.prefix, bin_dir, exe\\)")
+ (format #f "\"~a/bin/conda\"" out))
+ (("'CONDA_EXE', sys.executable")
+ (format #f "'CONDA_EXE', \"~a/bin/conda\"" out))))))
+ (add-before 'build 'create-version-file
+ (lambda _
+ (with-output-to-file "conda/.version"
+ (lambda () (display #$version)))))
+ (add-after 'create-entrypoints 'init
+ ;; This writes a whole bunch of shell initialization files to the
+ ;; prefix directory. Many features of conda can only be used after
+ ;; running "conda init".
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (setenv "HOME" "/tmp")
+ (invoke (string-append (assoc-ref outputs "out")
+ "/bin/conda")
+ "init"))))))
(inputs
(list python-wrapper))
(propagated-inputs
- 198/361: gnu: python-rich: Update to 13.7.1., (continued)
- 198/361: gnu: python-rich: Update to 13.7.1., guix-commits, 2024/11/22
- 199/361: gnu: python-cmd2: Move to pyproject-build-system., guix-commits, 2024/11/22
- 221/361: gnu: python-websockets: Adjust inputs., guix-commits, 2024/11/22
- 230/361: gnu: Remove python-mrkd., guix-commits, 2024/11/22
- 249/361: gnu: python-cucumber-tag-expressions: Update to 6.1.1., guix-commits, 2024/11/22
- 136/361: gnu: python-seaborn: Correct dependencies., guix-commits, 2024/11/22
- 143/361: gnu: python-zope-i18nmessageid: Update to 5.1.1., guix-commits, 2024/11/22
- 128/361: gnu: python-pycurl: Update to 7.45.3., guix-commits, 2024/11/22
- 137/361: gnu: python-transient: Move to pyproject-build-system., guix-commits, 2024/11/22
- 146/361: gnu: python-django-localflavor: Move to pyproject-build-system., guix-commits, 2024/11/22
- 156/361: gnu: conda: Reindent.,
guix-commits <=
- 155/361: gnu: conda: Move to pyproject-build-system., guix-commits, 2024/11/22
- 169/361: gnu: python-tinycss: Move to pyproject-build-system., guix-commits, 2024/11/22
- 176/361: gnu: abjad: Update to 3.19., guix-commits, 2024/11/22
- 185/361: gnu: python-jaraco-functools: Move to pyproject-build-system., guix-commits, 2024/11/22
- 184/361: gnu: python-jaraco-context: Move to pyproject-build-system., guix-commits, 2024/11/22
- 182/361: gnu: python-docspec-python: Move to pyproject-build-system., guix-commits, 2024/11/22
- 195/361: gnu: python-orderedmultidict: Move to pyproject-build-system., guix-commits, 2024/11/22
- 201/361: gnu: python-uqbar: Improve package style., guix-commits, 2024/11/22
- 208/361: gnu: tuir: Move to pyproject-build-system., guix-commits, 2024/11/22
- 218/361: gnu: python-cssselect2: Move to pyproject-build-system., guix-commits, 2024/11/22