Skip to content
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

WIP remove Python 2 packages #148669

Closed
wants to merge 1 commit into from
Closed

Conversation

piegamesde
Copy link
Member

@piegamesde piegamesde commented Dec 5, 2021

THIS IS A DRAFT PR, DO NOT REVIEW This is my personal playground for now because there is no other easy way to get a list of all affected packages.

Motivation for this change

#140168 (comment)

Apparently, that didn't really happen for some reason, so let's do it now. Yes, 6 a.m. is the correct time for those things :)

Also, this is not a graceful operation. I'll just go and rip off everything that still depends on Python 2, unless it has so dependents that there is no way around patching. (I've already been warned about Gtk2)

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@r-burns
Copy link
Contributor

r-burns commented Dec 5, 2021

This is my personal playground for now because there is no other easy way to get a list of all affected packages.

FYI, you can do nixpkgs-review wip for uncommitted changes and nixpkgs-review rev HEAD for the current commit. Just a suggestion, no worries if you prefer do do it this way

@7c6f434c
Copy link
Member

7c6f434c commented Dec 5, 2021

What's the motivation for dropping pypy2? Unlike CPython2 it is maintained upstream and is likely to be maintained indefinitely.

Moreover, we should just switch python2 stuff to pypy2 if it seems to start like.

@piegamesde
Copy link
Member Author

Again, this is my personal playground at the moment. There is no particular reason for nothing.

The `contrib` folder was removed from the packaging. It contains a lot of files
that are irrelevant to the actual package (i.e. Fedora spec files, selinux hardening
or systemd services). There are a few scripts in there too but in any case they are
misplaced and would be better off in a separate package (as e.g. the Fedora packaging
does)
@piegamesde piegamesde closed this Dec 12, 2021
@ofborg ofborg bot requested a review from ehmry December 12, 2021 20:58
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels Dec 12, 2021
ehmry added a commit that referenced this pull request Dec 17, 2021
Python 2 is deprecated.
Ref #148669
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants