writers.writePython2: remove / writers.writePyPy{2,3}: init#150132
writers.writePython2: remove / writers.writePyPy{2,3}: init#150132Lassulus merged 2 commits intoNixOS:masterfrom
Conversation
rnhmjoj
left a comment
There was a problem hiding this comment.
This change needs an entry in the release notes and maybe an alias.
|
|
fde5bf3 to
1a62fac
Compare
1a62fac to
757a0ea
Compare
PR updated, also added writers for PyPy as an alternative for legacy scripts. |
Thanks you. Unfortunately the aliases seem to be messing with |
Ah yes, fixed. |
757a0ea to
31f8472
Compare
|
sadly this has already a merge conflict. |
31f8472 to
b93e478
Compare
Rebased the PR. |
|
hmm, seems like the pypy3 writer test doesn't work for me: |
That is due to |
|
Why? Why remove it? Does that mean all programs written for python 2 have to be deleted now, because somebody declared it “EOL”? |
|
I’d like to revert this until python2 is actually removed (iff that ever happens which I honestly hope it won’t). |
|
To be clear, I am rather angry at this change, breaking an API like this without any good reason (and no, “EOL” is not a good reason!) is a total no-go. |
It totally is for me: the CPython 2 interpreter and its standard library almost surely have security vulnerabilities that will never be fixed. |
|
> and no, “EOL” is not a good reason!
It totally is for me: the CPython 2 interpreter and its standard library almost surely have security vulnerabilities that will never be fixed.
Good question what kind of data writePython scripts actually handle.
But even without looking into that, that's EOL for CPython2, not Python2. We have an upstream supported Python2 interpreter in Nixpkgs.
|
|
@Profpatsch This is just a helper to write a python script from a nix expression and have a given interpreter (Python2) set. To my knowledge this helper was not used in nixpkgs and most likely unused outside nixpkgs. |
Motivation for this change
#148779
python2 is EOL and due for removal; functions unused in nixpkgs
a replacement using the PyPy interpreter is added to ease transition
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review pr 150132". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes