question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bootstrap script cannot be executed without setuptools already installed

See original GitHub issue

The 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:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jjhelmuscommented, Feb 1, 2017

In previous versions of setuptools (for example 33.1.0) is was possible to use the bootstrap.py script to install setuptools into an environment which contained only Python (no pip, setuptools, or wheel 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 requires pip which requires setuptools) which makes packaging difficult. Providing a method to install setuptools 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 and wheel so that they can be upgraded independently. Our build order for these packages was python, setuptools, wheel and then pip. The new requirements on pip to install setuptools is causing some issues with this build order.

0reactions
jjhelmuscommented, Feb 2, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found