Skip to content

Commit

Permalink
works with buildEnv but order matters for PYTHONPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Oct 26, 2016
1 parent f4e2fd4 commit 7ea92fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/matplotlib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ buildPythonPackage rec {
postFixup = ''
mkdir -p $tests/${python.sitePackages}/matplotlib/tests
mv $out/${python.sitePackages}/matplotlib/tests $tests/${python.sitePackages}/matplotlib/
echo "from pkgutil import extend_path; __path__ = extend_path(__path__, __name__)" >> "$out/${python.sitePackages}/matplotlib/__init__.py"
echo "from pkgutil import extend_path; __path__ = extend_path(__path__, __name__)" > "$tests/${python.sitePackages}/matplotlib/__init__.py"
mkdir -p $tests/nix-support
echo $out > $tests/nix-support/propagated-native-build-inputs
export PYTHONPATH="$tests/${python.sitePackages}:$PYTHONPATH"
'';

outputs = [ "out" "tests" ];
Expand Down

0 comments on commit 7ea92fc

Please sign in to comment.