pip install -e . fails with version = attr: pkg.__version__
in setup.cfg
#6350
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: wrong project
Should be reported elsewhere
type: support
User Support
Environment
Description
When a package has
version = attr: pkg.__version__
in itssetup.cfg
file,pip install -e .
can fail with anImportError
if not all runtime dependencies have been installed yet.Expected behavior
Runtime dependencies should be installed first, and after that the version should be determined. (At least that would fix the problem.) Or something else that would make the command succeed and the package with correct version and dependencies installed.
How to Reproduce
I've created a minimal repo to reproduce the error: https://github.com/kohr-h/minimal
Reproducing the error:
python
andpip
inside, but withoutnumpy
(our example dependency)pip install -e .
in the repo rootWorkaround:
numpy
as wellpip install -e .
succeedsOutput
Failure case:
The text was updated successfully, but these errors were encountered: