Skip to content

Commit

Permalink
python: Set NIX_PYTHONPATH in check phase
Browse files Browse the repository at this point in the history
package namespaces are implemented in pip with *.pth files. These files
are only processed in "site" directories. The PYTHONPATH directories
aren't automatically considered "site" directories. NIX_PYTHONPATH
directories are added to the "site" directories by
pkgs/development/interpreters/python/sitecustomize.py.
  • Loading branch information
singron committed Oct 23, 2019
1 parent e9ca44e commit 73d077e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ setuptoolsCheckPhase() {
runHook preCheck

cp -f @setuppy@ nix_run_setup
@pythonCheckInterpreter@ nix_run_setup test
NIX_PYTHONPATH="$PYTHONPATH" @pythonCheckInterpreter@ nix_run_setup test

runHook postCheck
echo "Finished executing setuptoolsCheckPhase"
Expand Down

0 comments on commit 73d077e

Please sign in to comment.