mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00
python: don't propagate installed packages into userenv, refs #4949
Propagation is not needed anymore, as we have more powerful apis today than this dirty hack. See nix-shell tool and python.buildEnv function in nixpkgs manual.
This commit is contained in:
parent
c611f5837c
commit
9a33fbb52d
@ -143,14 +143,6 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl
|
||||
postFixup = attrs.postFixup or ''
|
||||
wrapPythonPrograms
|
||||
|
||||
# If a user installs a Python package, they probably also wants its
|
||||
# dependencies in the user environment profile (only way to find the
|
||||
# dependencies is to have them in the PYTHONPATH variable).
|
||||
# Allows you to do: $ PYTHONPATH=~/.nix-profile/lib/python2.7/site-packages python
|
||||
if test -e $out/nix-support/propagated-build-inputs; then
|
||||
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
|
||||
fi
|
||||
|
||||
# TODO: document
|
||||
createBuildInputsPth build-inputs "$buildInputStrings"
|
||||
for inputsfile in propagated-build-inputs propagated-native-build-inputs; do
|
||||
|
Loading…
Reference in New Issue
Block a user