Skip to content

vigra: python2 -> python3#153516

Closed
kevinmehall wants to merge 1 commit intoNixOS:masterfrom
kevinmehall:vigra-python3
Closed

vigra: python2 -> python3#153516
kevinmehall wants to merge 1 commit intoNixOS:masterfrom
kevinmehall:vigra-python3

Conversation

@kevinmehall
Copy link
Contributor

This derivation already doesn't build vigra's python bindings; the only use of python is the bin/vigra-config script that dependent packages can use to get compiler flags. I confirmed that this script works correctly on python3. Without building the python bindings, the numpy dependency is not used, so was removed.

A diff between the old and new output directories shows that the only changes are in bin/vigra-config: the #! path to python and the absolute paths to the output directory that would change on any rebuild.

Motivation for this change

Remove python2: #148779

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.

This derivation already doesn't build vigra's python bindings; the only
use of python is the `bin/vigra-config` script that dependent packages
can use to get compiler flags. I confirmed that this script works
correctly on python3. Without building the python bindings, the numpy
dependency is not used, so was removed.

A `diff` between the old and new output directories shows that the only
changes are in `bin/vigra-config`: the `#!` path to python and the
absolute paths to the output directory that would change on any rebuild.
@ofborg ofborg bot requested a review from viric January 4, 2022 22:07
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 4, 2022
@FRidh
Copy link
Member

FRidh commented Jan 16, 2022

Done in #154697 fa0e52a

@FRidh FRidh closed this Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants