-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
libxslt: use python3 on darwin #111212
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
libxslt: use python3 on darwin #111212
Conversation
/rebase-staging |
ded1bb1
to
a95a245
Compare
See NixOS#63174 where the condition was first introduced.
a95a245
to
1293244
Compare
1293244
to
ca3bb64
Compare
@@ -3710,7 +3710,7 @@ in { | |||
|
|||
libxslt = (toPythonModule (pkgs.libxslt.override { | |||
pythonSupport = true; | |||
inherit python; | |||
python3 = python; |
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.
This looks awkward now, but this is what other packages do in this file.
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.
A more elegant way would be to remove this line and add disabled to the package. You need to input python and not python3 here because otherwise it would break the package for different python versions.
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.
A more elegant way would be to remove this line and add disabled to the package.
Like disabledIf (!isPy3k)
?
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.
What is here is fine.
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.
disabledIf (!isPy3k)
That's for in case the bindings are no longer Python 2 compatible.
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.
Like disabledIf (!isPy3k)?
in the package: disabled = !isPy3k;
.
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.
The package itself builds ok with python2 (it was the default on darwin after all), why disable it?
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.
I just answered your question. Packages schools not be null when a specific platform is not supported.
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.
Assuming the packages build still with Python 2 and 3 on all platforms this looks good to me.
Motivation for this change
See #63174 where the condition was first introduced. In #77610 it was dropped for libxml2
Not having python2 helps with #105026.
cc @NixOS/darwin-maintainers
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)