-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
[20.09] pythonPackages.pymc3: fix build, init pythonPackages.fastprogress at 1.0.0 #100955
[20.09] pythonPackages.pymc3: fix build, init pythonPackages.fastprogress at 1.0.0 #100955
Conversation
@ofborg build python37Packages.pymc3 |
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.
Please use correct grammar in comments.
(modified cherry pick of commit 4a9dba6) some tricks are required to make this work because NixOS#93560 and NixOS#97597 didn't make it into this branch, but this example shows what is required to import theano from within a nix build environment on this branch.
(cherry picked from commit 9a09285)
(modified cherry-pick of commit 3c3295a)
264840d
to
f447235
Compare
Er.. not sure if you're serious, but ok... |
Result of 10 packages built:
|
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
Result of nixpkgs-review pr 100955 1
10 packages built:
- python27Packages.Lasagne
- python27Packages.Theano (python27Packages.TheanoWithoutCuda)
- python27Packages.TheanoWithCuda
- python37Packages.Theano (python37Packages.TheanoWithoutCuda)
- python37Packages.TheanoWithCuda
- python37Packages.fastprogress
- python37Packages.pymc3
- python38Packages.Theano (python38Packages.TheanoWithoutCuda)
- python38Packages.TheanoWithCuda
- python38Packages.fastprogress
@risicle BTW, just wanted to say thanks for working this all out. Have been reading through the various threads and can see this was quite a mess for you to straighten out. 👍 |
No problem - you got the real fix in place. |
Motivation for this change
ZHF: #97479
This is a modified & combined backport of #99587 and #100867.
Because 20.09 is missing #97597 and #93560 (and I think including them at this stage might be a bit risky), importing/using
theano
from within a nix build environment (i.e. withNIX_ENFORCE_PURITY=1
) will only succeed if the tmpdir used is actually literally/tmp
, which you can't really do from a sandboxed build. So this useslibredirect
to convince the compiler wrapper we are actually working with/tmp
.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)