From 05686efeb2275e477c5ff760a66070ac87abf15f Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sun, 14 Dec 2025 15:44:56 +0100 Subject: [PATCH] gnu: conda: Rename to conda-bootstrap. * gnu/packages/package-management.scm (conda): Rename to... (conda-bootstrap): ...this. [arguments]<#:phases>{pre-check}: Also set CONDA_PKGS_DIRS. [propagated-inputs]: Add python-archspec, python-boltons, python-boto3, python-charset-normalizer, python-conda-package-handling, python-conda-content-trust, python-distro, python-frozendict, python-jsonpatch, python-menuinst, python-packaging, python-platformdirs, python-pluggy, python-pycosat, python-requests, python-ruamel.yaml, python-setuptools, python-tqdm, python-truststore, python-zstandard. [inputs]: Remove all. Add python-wrapper. Change-Id: I8f6a3ae4c8c1edceee1be43721c61014cf4da120 --- gnu/packages/package-management.scm | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 74f7b1274c..c625c57520 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -1448,9 +1448,9 @@ allows you to declare the libraries your project depends on and it will manage (install/update) them for you.") (license license:expat))) -(define-public conda +(define-public conda-bootstrap (package - (name "conda") + (name "conda-bootstrap") (version "25.9.1") (source (origin @@ -1588,21 +1588,20 @@ manage (install/update) them for you.") (setenv "HOME" "/tmp") (invoke (string-append #$output "/bin/conda") "init"))) (add-after 'unpack 'set-default-solver-to-classic - ;; XXX: Remove when conda-libmamba-solver is packaged. (lambda _ (substitute* "conda/base/constants.py" (("DEFAULT_SOLVER: Final = \"libmamba\"") "DEFAULT_SOLVER: Final = \"classic\"")))) (add-before 'check 'pre-check (lambda _ - ;; TODO: Package libsolv, libmamba, and conda-libmamba-solver: - ;; , - ;; , - ;; . (setenv "CONDA_CLASSIC_SOLVER" "classic") (setenv "CONDA_DEFAULT_SOLVER" "classic") + ;(setenv "CONDA_SOLVER" "classic") (setenv "CONDA_TEST_SOLVERS" "classic") - (setenv "HOME" "/tmp"))) + (setenv "HOME" "/tmp") + ;; Prevent tests from writing package cache to the output + ;; directory, which would cause non-reproducible builds. + (setenv "CONDA_PKGS_DIRS" "/tmp/conda-pkgs"))) (add-after 'wrap 'wrap-executable (lambda _ (wrap-program (string-append #$output "/bin/conda") @@ -1631,12 +1630,11 @@ manage (install/update) them for you.") python-pytest-xprocess python-responses python-werkzeug)) - (inputs + (propagated-inputs (list python-archspec python-boltons python-boto3 python-charset-normalizer - ;; python-conda-libmamba-solver ;TODO: not packaged yet python-conda-package-handling python-conda-content-trust python-distro @@ -1652,8 +1650,9 @@ manage (install/update) them for you.") python-setuptools python-tqdm python-truststore - python-wrapper ;XXX: Check if it's actually required python-zstandard)) + (inputs + (list python-wrapper)) ; for the tests test_init_all, test_initialize_dev_bash, test_initialize_dev_cmd_exe (home-page "https://github.com/conda/conda") (synopsis "Cross-platform, OS-agnostic, system-level binary package manager") (description