bootstrap script cannot be executed without setuptools already installed
See original GitHub issueThe bootstrap.py
script cannot be used to bootstrap from an environment without setuptools. The script imports pip
which requires setuptools to be be installed. This behavior was introduced in #933.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Unable to install setuptools from GitHub main · Issue #1527
Attempting to run egg_info on setuptools has no effect until metadata is present. The bootstrap.py function works around this issue by ...
Read more >Python 3: ImportError "No Module named Setuptools"
Your setup.py file needs setuptools . Some Python packages used to use distutils for distribution, but most now use setuptools , a more...
Read more >Why you shouldn't invoke setup.py directly - Paul Ganssle
The only thing you must stop doing is directly executing the setup.py ... or to install the package you would run python setup.py...
Read more >setuptools 8.0.2 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >Getting Started With setuptools and setup.py - PythonHosted.org
To install setuptools visit http://pypi.python.org/pypi/setuptools and follow the instructions for your operating system. Also, check out http://peak.
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
In previous versions of
setuptools
(for example 33.1.0) is was possible to use thebootstrap.py
script to installsetuptools
into an environment which contained only Python (nopip
,setuptools
, orwheel
packages installed). This behavior was very helpful for downstream distributors who want to create packages of setuptools. The currently behavior creates a circular dependency (setuptools
requirespip
which requiressetuptools
) which makes packaging difficult. Providing a method to installsetuptools
into a bare Python environment would be very helpful.My own needs for this is for conda-forge. We create separate conda packages for
python
,setuptools
,pip
andwheel
so that they can be upgraded independently. Our build order for these packages waspython
,setuptools
,wheel
and thenpip
. The new requirements onpip
to installsetuptools
is causing some issues with this build order.Added an optional flag to the
bootstrap.py
script in PR #958 which when specified skips the installation of dependencies using pip. This should solve the issue for re-packagers who are using other tools to install these dependencies.