blender: use PYTHONPATH (#82341)

See [blender patch](https://developer.blender.org/D6598)
This commit is contained in:
Murray Campbell 2020-03-12 11:41:25 -07:00 committed by GitHub
parent 37b590dc45
commit fd614a72e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,7 +122,8 @@ stdenv.mkDerivation rec {
# --python-expr is used to workaround https://developer.blender.org/T74304
postInstall = ''
wrapProgram $blenderExecutable \
--add-flags '--python-expr "import sys; sys.path.append(\"${python3Packages.numpy}/${python.sitePackages}\")"'
--prefix PYTHONPATH : ${python3Packages.numpy}/${python.sitePackages} \
--add-flags '--python-use-system-env'
'';
# Set RUNPATH so that libcuda and libnvrtc in /run/opengl-driver(-32)/lib can be