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.

Dealing with deprecation of ez_setup.py for non-install commands

See original GitHub issue

The documentation of setuptools points out that ez_setup.py is deprecated in favor of pyproject.toml and pip.

If I am currently in a directory with a Python package that uses ez_setup.py, I can run any python setup.py <command> and setuptools is then made available during the setup.py process.

Once there is a stable release of pip that supports pyproject.toml, it will be possible to do pip install . instead of python setup.py install and this will get setuptools on the fly if needed.

However, this doesn’t solve the issue of how to deal with other commands. For example, if I run python setup.py test there is no such thing as using pip, so how does one ensure that setuptools is automatically available in this scenario? Is the only way to require users to pip install setuptools before running python setup.py test?

(edited for clarity)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
ghostcommented, Sep 25, 2017

The intended workflow is that when you first clone a project, you will run pip install -e .. You will then edit files, run commands, or otherwise work on the project. After you’re done, you will run pip uninstall .. Also, running setup.py directly will (after a long period of deprecation) be transitioned to implementation-defined behavior. For testing, you will need to run your testing framework in the project directory, with something like py.test.

0reactions
JensTimmermancommented, Jan 24, 2018

Will it also provide a bdist_rpm command?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why you shouldn't invoke setup.py directly
This does not mean that setuptools itself is deprecated, or that using setup.py to configure your package builds is going to be removed....
Read more >
venv — Creation of virtual environments
Creation of virtual environments is done by executing the command venv : ... virtual environments for Python 3.3 and 3.4, and is deprecated...
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >
Installed Python Libraries
Library Python 3 SageMath Anaconda 2020 Anaco... abelfunctions 0.1.0 access. Calculate spatial accessibility metrics. 1.1.8 1.1.8 1.1.3 1.1.3 admcycles. Tautological ring on Mbar_g,n 1.3.2
Read more >
Change log — pymssql 2.1.4 documentation
Add Python 3.7 support - Drop Python 3.3 support Features ... UUID`` passed as parameters for SQL queries both in ``pymssql`` and ``_mssql``....
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