mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
pipenv: Ignore Python site-packages
pipenv nix wrapper contains a PYTHONPATH which has some dependencies for pipenv installed. pipenv by default uses site-packages when resolving packages, which means that any package that is included in the nix wrapper is satisfied when running `pipenv install`. But when the actual virtualenv created by pipenv is activated, it doesn't contain those packages anymore and fails to import them. pipenv has a flag PIP_IGNORE_INSTALLED which can be used to ignore site-packages. Which fixes the problem of having different resolved packages when running pipenv and when running the virtualenv.
This commit is contained in:
parent
99eddf32dc
commit
11d491dce5
@ -24,6 +24,7 @@ buildPythonApplication rec {
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--set PYTHONPATH \"$PYTHONPATH\""
|
||||
"--set PIP_IGNORE_INSTALLED 1"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user