Open sandangel opened 1 year ago
What's the error you get?
error: attribute 'sitePackages' missing
at /nix/store/2p68yxfrgiv6g31sx2iamf4ilqlpn7i2-source/src/modules/languages/python.nix:209:46:
208| ''
209| export PYTHONPATH="$DEVENV_PROFILE/${cfg.package.sitePackages}''${PYTHONPATH:+:$PYTHONPATH}"
| ^
210| ''
This is the error
You will need to use python.withPackages
.
sorry can you elaborate a bit more? I need to set the LD_LIBRARY_PATH for the python3 binary, how will that work with python.withPackages?
Does it help if you try python.buildEnv
instead of pkgs.buildEnv
?
@sandangel what python package fails to build here? I'm trying to write down a good python test suite.
@domenkozar https://github.com/cachix/devenv/issues/715#issuecomment-1632782942
because when I override python package, it requires that package to have sitePackages
property, which is not available if I use pkgs.buildEnv
. I have not tried python.buildEnv
yet.
Describe the bug A clear and concise description of what the bug is.
I can not override the python3 package with buildEnv:
To reproduce Please provide an sscce by creating a gist using
devenv.nix
,devenv.yaml
, and optionallydevenv.lock
.Version : latest main
Paste the output of
$ devenv version
here.