-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
How to override setuptools <70? #1729
Comments
Maybe related to #1616 discussing how to separate build (i think poetry-core needs setuptools 70) from runtime dependencies. |
I'm pretty sure the setuptools being used comes from nixpkgs. |
Same issue here as well, trying to downgrade setuptools < 70.0.0:
But it gets blocked by nix... |
Quite often the setup tools incompatibility is minor and a quick patch to the package wanting a setup tools < 70 is all that is needed. Sometimes it's an entirely imaginary upper bound, and all you need is to patch it. (Not saying that's the case for torch though) This is somewhat common in the python ecosystem, where the upper bounds need to be defined on release and can't be updated later on |
It’s requesting an import that isn’t there in setuptools 70.x. There is no version constraint. |
Was anyone able to solve this problem? |
I have an older
torch==1.10.1
package that needs an oldersetuptools<=70
version due to breaking changes.With
setuptools==70.0.0
i get the following error message, which isn't NixOS or Mac related (See AUTOMATIC1111/stable-diffusion-webui#15863 (comment)):Describe the issue
However, pinning an older
setuptools = { version = "<70" }
inpyproject.toml
andpoetry.lock
doesn't download that version. Apparently, eithernixpkgs
orpoetry2nix
overrides and sneaks in a newer70.0.0.post0
, which then later leads to an error withnix build
:How would you debug this and override the setuptools version that lands into the poetry2nix
venv
?Overriding the Nixpkgs
python
packages doesn't seem to work and overriding poetry2nix package set doesn't as well:Additional context
pyproject.toml
:The text was updated successfully, but these errors were encountered: