blender: use PYTHONPATH (#82341)
See [blender patch](https://developer.blender.org/D6598)
This commit is contained in:
parent
37b590dc45
commit
fd614a72e9
@ -122,7 +122,8 @@ stdenv.mkDerivation rec {
|
|||||||
# --python-expr is used to workaround https://developer.blender.org/T74304
|
# --python-expr is used to workaround https://developer.blender.org/T74304
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $blenderExecutable \
|
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
|
# Set RUNPATH so that libcuda and libnvrtc in /run/opengl-driver(-32)/lib can be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user