New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blender: fix enableNumpy option #81313
Conversation
not familiar with how blender calls python. But another option would be to use |
a32d5a4
to
9b5672a
Compare
I disregarded |
Actually, that didn't work. The blender links to the python interpreter directly so our wrappers don't have any effect. I will revert back to wrapping blender itself. |
ah, I didn't realize it was linking against it :( |
9b5672a
to
ab92795
Compare
Workarounds https://developer.blender.org/T74304 Audaspace requires numpy, we already have to provide numpy unconditionally via PYTHON_NUMPY_PATH.
ab92795
to
2757885
Compare
I think, this is ready now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
launches fine
(not sure how to actually test the numpy use case)
[2 built, 14 copied (153.7 MiB), 47.8 MiB DL]
https://github.com/NixOS/nixpkgs/pull/81313
1 package built:
blender
@GrahamcOfBorg build blender |
|
Workarounds https://developer.blender.org/T74304 Audaspace requires numpy, we already have to provide numpy unconditionally via PYTHON_NUMPY_PATH. (cherry picked from commit 2757885) cc #81313
This doesn't quite work for me. It looks like addons are loaded before this command executes. At least this is true for the Archipack Pro addon. I get:
Importing numpy from the blender python console works fine. If I then go into Preferences and toggle the addon it loads correctly (although settings are lost so it's not a very satisfactory workaround). This was working before (for < 2.82) |
@amurrayc I'm not able to reproduce your issue with Archipack (not PRO, I guess?). Could you please open an issue and describe steps to reproduce. Please assume that we have little experience using extensions in Blender (which is true for me, at least). |
Motivation for this change
Fixes: #81218
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)