Skip to content

Comments

python3Packages.torch{,-bin}: rename from pytorch{,-bin}#188984

Merged
mweinelt merged 1 commit intoNixOS:masterfrom
mweinelt:torch
Aug 30, 2022
Merged

python3Packages.torch{,-bin}: rename from pytorch{,-bin}#188984
mweinelt merged 1 commit intoNixOS:masterfrom
mweinelt:torch

Conversation

@mweinelt
Copy link
Member

The proper name for a python package is the one in the setuptools
setup() call, which can also be seen on pypi.

Correct: https://pypi.org/project/torch/
Wrong: https://pypi.org/project/pytorch/

Includes a treewide rename of the attribute and creates aliases for the
old name.

Description of changes
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.11 Release Notes (or backporting 22.05 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.

@github-actions github-actions bot added 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 6.topic: python Python is a high-level, general-purpose programming language. labels Aug 30, 2022
The proper name for a python package is the one in the setuptools
setup() call, which can also be seen on pypi.

Correct: https://pypi.org/project/torch/
Wrong: https://pypi.org/project/pytorch/

Includes a treewide rename of the attribute and creates aliases for the
old name.
@ofborg ofborg bot added 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Aug 30, 2022
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @samuela

Copy link
Member

@samuela samuela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes LGTM

will the packages still be discoverable on search.nixos.org when users search for "pytorch"?

@mweinelt
Copy link
Member Author

mweinelt commented Aug 30, 2022

If it's neither the pname nor part of the description I don't believe so. Probably something to take up with the search people?

The official description would also need to be set to

Tensors and Dynamic neural networks in Python with strong GPU acceleration

I will do that on the 1.12.1 update that I have queued locally.

@samuela
Copy link
Member

samuela commented Aug 30, 2022

Yeah, in that case I propose we just add "PyTorch" into the description to aid discoverability. Eg, something like "The PyTorch machine learning framework. Tensors and Dynamic neural networks in Python with strong GPU acceleration"

@mweinelt mweinelt merged commit 578f231 into NixOS:master Aug 30, 2022
@mweinelt mweinelt deleted the torch branch August 30, 2022 18:41
@mweinelt
Copy link
Member Author

Description update is part of #189013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 6.topic: python Python is a high-level, general-purpose programming language. 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants