···1+--- a/conda/base/context.py
2++++ b/conda/base/context.py
3+@@ -754,7 +754,7 @@
4+5+ @property
6+ def conda_prefix(self):
7+- return abspath(sys.prefix)
8++ return expand("~/.conda")
9+10+ @property
11+ @deprecated(
12+@@ -787,28 +787,17 @@
13+ The vars can refer to each other if necessary since the dict is ordered.
14+ None means unset it.
15+ """
16+- if context.dev:
17+- return {
18+- "CONDA_EXE": sys.executable,
19+- # do not confuse with os.path.join, we are joining paths with ; or : delimiters
20+- "PYTHONPATH": os.pathsep.join(
21+- (CONDA_SOURCE_ROOT, os.environ.get("PYTHONPATH", ""))
22+- ),
23+- "_CE_M": "-m",
24+- "_CE_CONDA": "conda",
25+- "CONDA_PYTHON_EXE": sys.executable,
26+- }
27+- else:
28+- bin_dir = "Scripts" if on_win else "bin"
29+- exe = "conda.exe" if on_win else "conda"
30+- # I was going to use None to indicate a variable to unset, but that gets tricky with
31+- # error-on-undefined.
32+- return {
33+- "CONDA_EXE": os.path.join(sys.prefix, bin_dir, exe),
34+- "_CE_M": "",
35+- "_CE_CONDA": "",
36+- "CONDA_PYTHON_EXE": sys.executable,
37+- }
38++ import sys
39++ return {
40++ "CONDA_EXE": sys.executable,
41++ # do not confuse with os.path.join, we are joining paths with ; or : delimiters
42++ "PYTHONPATH": os.pathsep.join(
43++ [CONDA_SOURCE_ROOT, os.environ.get("PYTHONPATH", "")] + [path for path in sys.path if "site-packages" in path]
44++ ),
45++ "_CE_M": "-m",
46++ "_CE_CONDA": "conda",
47++ "CONDA_PYTHON_EXE": sys.executable,
48++ }
49+50+ @memoizedproperty
51+ def channel_alias(self):
+68-23
pkgs/development/python-modules/conda/default.nix
···1-{ lib
2-, buildPythonPackage
3-, pythonAtLeast
4-, fetchPypi
5-, pycosat
6-, requests
7-, ruamel-yaml
8-, isPy3k
9-, enum34
0000000000000000010}:
11-12-# Note: this installs conda as a library. The application cannot be used.
13-# This is likely therefore NOT what you're looking for.
14-15buildPythonPackage rec {
16 pname = "conda";
17- version = "4.3.16";
18- format = "setuptools";
1920- # this is a very outdated version of conda that isn't compatible with python 3.10+
21- disabled = pythonAtLeast "3.10";
22-23- src = fetchPypi {
24 inherit pname version;
25- sha256 = "a91ef821343dea3ba9670f3d10b36c1ace4f4c36d70c175d8fc8886e94285953";
00026 };
2728- propagatedBuildInputs = [ pycosat requests ruamel-yaml ] ++ lib.optional (!isPy3k) enum34;
0000000000000000000002930- # No tests
31- doCheck = false;
00000000003233 meta = {
34 description = "OS-agnostic, system-level binary package manager";
35 homepage = "https://github.com/conda/conda";
36 license = lib.licenses.bsd3;
037 };
38}