-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Sage python upgrade fixes #56781
Sage python upgrade fixes #56781
Conversation
pip 19 introduced a deprecation warning for python 2.7. Since sage internally uses pip to query for installed packages, this deprecation warning will show up at unexpected times. That is ugly and messes with the testsuite. Upstream: https://trac.sagemath.org/ticket/27405
]; | ||
|
||
buildInputs = [ | ||
gd | ||
readline | ||
iml |
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.
@FRidh I don't understand why I need to add iml
to buildInputs
to make the build succeed. Its already in nativeBuildInputs
, yet the build fails without it also being in buildInputs
.
@@ -58,6 +58,10 @@ buildPythonPackage rec { | |||
tidyr | |||
]) ++ extraRPackages ++ rWrapper.recommendedPackages; | |||
|
|||
nativeBuildInputs = [ | |||
R # needed at setup time to detect R_HOME (alternatively set R_HOME explicitly) |
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.
@matthewbauer what is the right way to do this? This is probably wrong right? It would pick up the build R
and not be able to find it at runtime.
Merging this right now to fix the current build failure. After feedback I'll make another PR if necessary. |
@timokau sage builds for me on the nixpkgs master, but is still broken on release-19.03. As this seems to fix the build, it should be backported IMHO. |
Thanks for reminding me. #57253 |
Motivation for this change
Fixes the sage build after it was broken by the pip upgrade &
strictDeps
in #55757.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)