Problems with installing package that doesn’t use setup.py
See original GitHub issueI’m having problems getting a package installed that doesn’t use a setup.py
file. Only a setup.cfg
file. I’ve made sure I’m using the most recent mach-nix
& pypi-deps-db
versions.
This is the error message that I’m seeing:
> Mach-nix version: master
> Python: 3.10.3
> Cause: Requirements conflict: django-phonenumber-field (<SpecifierSet('==6.1.0')>,)
> The requirements which caused the error:
> django-phonenumber-field (<SpecifierSet('==6.1.0')>,)
>
> The given requirements might contain package versions which are not yet part of the dependency DB
> currently used. The DB can be updated by specifying 'pypiDataRev' when importing mach-nix.
> For examples see: https://github.com/DavHau/mach-nix/blob/master/examples.md
>
I’ve looked through lots of places & can see the package & correct version listed in pypi-deps-db
but it’s listed under sdist-errors
with this message:
"27": "IOError: [Errno 2] No such file or directory: 'setup.py'",
"36": "FileNotFoundError: [Errno 2] No such file or directory: 'setup.py'",
I’m sorry that I don’t know anything about Python setup & package distribution but I gather the setup.cfg
only style is a newer way to install things.
Looking at older versions of django-phonenumber-field
I can see in the past the package did have setup.py
:
https://github.com/stefanfoulis/django-phonenumber-field/blob/5.2.0/setup.py
Should this build format be supported? Any thoughts or helpful tips? Thanks!
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top GitHub Comments
Indeed it is not the case. mach-nix doesn’t know how to extract metadata from a PEP 517 package (roughly a package using
pyproject.toml
) and so it doesn’t consider such packages when trying to do dependency resolution.There are plenty of packages affected by this.
With https://github.com/DavHau/pypi-deps-db/blob/99323880924a90acd689a4f23b56551d06d3f780