Work around PEP-517 pip build system installing dev dependencies #220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I started to get errors installing hokusai via
pip install .
in a Docker container due to unavailable gcc tools and realized introducing thepyproject.toml
file caused pip to usepoetry
as its build system which then installed dev dependencies.Pip introduced support for PEP-517 -- A build-system independent format for source trees in version 10 which respects the
pyproject.toml
file and support for thebuild-backend
in version 19. These errors only manifest while running on pip version 19 or 20 so followed the lead of this PR to default to the legacy build backend (i.e.setuptools
).Here are similar issues:
pip install -e .
/pip install .
now work as expected and only install dependencies specified in setup.py. It may be nice in the future to use poetry as a production build backend but will require further investigation.