PEP 517 - can't build a dependency without setup.py
See original GitHub issueEnvironment
- pip version: 19.0
- Python version: 2.7.15
- OS: OSx
Description Deploying a dependency that does not have setup.py, but does have pyproject.toml, fails with “setup.py” not found
Complete output from command /Users/[username]/.virtualenvs/screenit/bin/python2.7 /Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/tmpGaZn3F:
Traceback (most recent call last):
File "/Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
main()
File "/Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 54, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/pip-build-env-pEtv1_/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 115, in get_requires_for_build_wheel
return _get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/pip-build-env-pEtv1_/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 101, in _get_build_requires
_run_setup()
File "/private/var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/pip-build-env-pEtv1_/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 82, in _run_setup
f = getattr(tokenize, 'open', open)(__file__)
IOError: [Errno 2] No such file or directory: 'setup.py'
Expected behavior Build is expected to complete succesfully.
How to Reproduce pip install anypackage.with.toml.and.no.setup.py
Output
Complete output from command /Users/[username]/.virtualenvs/screenit/bin/python2.7 /Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/tmpGaZn3F:
Traceback (most recent call last):
File "/Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
main()
File "/Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/[username]/.virtualenvs/screenit/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 54, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/pip-build-env-pEtv1_/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 115, in get_requires_for_build_wheel
return _get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/pip-build-env-pEtv1_/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 101, in _get_build_requires
_run_setup()
File "/private/var/folders/rn/h895ldtn7rd_6gc9mgjdb6zh0000gn/T/pip-build-env-pEtv1_/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 82, in _run_setup
f = getattr(tokenize, 'open', open)(__file__)
IOError: [Errno 2] No such file or directory: 'setup.py'
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
Could not build wheels for _ which use PEP 517 and cannot ...
The easiest solution to deal with the error "Could not build wheels for ____ which use PEP 517 and cannot be installed directly"....
Read more >PEP 517 – A build-system independent format for source trees
build -backend is a string naming a Python object that will be used to perform the build (see below for details). This is...
Read more >setup.py (legacy) - pip documentation v22.3.1
toml-based builds (in PEP 517 and PEP 518), pip had only supported installing packages using setup.py files that were built using setuptools. The...
Read more >pep517 - PyPI
PEP 517 specifies a standard API for systems which build Python packages. PEP 660 extends it with a build mode that leads to...
Read more >distutils-r1 — standard Python build systems
The PEP 517 mode also features a 'no build system' mode for packages that do not or cannot use a PEP 517-compliant build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is great stuff guys, I appreciate the help and detailed responses. I now understand the issue might be specifically in the backend API impl of poerty.
I’ll head over there to try and get it resolved, I guess a better python world is when everything will play nicely together.
Thanks!
EDITED: I see this is already reported - https://github.com/sdispater/poetry/issues/825
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.