`pip install -e` does not install console scripts
See original GitHub issueDescription
No console scripts are installed when using editable mode for pip install
.
Expected behavior
Console scripts should be installed, like in non-editable mode.
pip version
22.0.4
Python version
3.9.12
OS
macOS 12.3.1
How to Reproduce
- Clone Git repo
https://github.com/alexreg/ycomp
. - Run
pip install -e .
from within the repo. - Observe that console scripts are not installed, unlike with
pip install .
.
Output
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Obtaining file:///Users/alex/Software/ycomp
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy~=1.21 in /opt/homebrew/lib/python3.9/site-packages (from ycomp==0.1.0) (1.22.3)
Requirement already satisfied: requests~=2.26 in /opt/homebrew/lib/python3.9/site-packages (from ycomp==0.1.0) (2.27.1)
Requirement already satisfied: typer~=0.4 in /opt/homebrew/lib/python3.9/site-packages (from ycomp==0.1.0) (0.4.1)
Requirement already satisfied: more-itertools~=8.10 in /opt/homebrew/lib/python3.9/site-packages (from ycomp==0.1.0) (8.12.0)
Requirement already satisfied: cssselect~=1.1 in /opt/homebrew/lib/python3.9/site-packages (from ycomp==0.1.0) (1.1.0)
Requirement already satisfied: lxml~=4.6 in /opt/homebrew/lib/python3.9/site-packages (from ycomp==0.1.0) (4.8.0)
Requirement already satisfied: pandas~=1.4 in /opt/homebrew/lib/python3.9/site-packages (from ycomp==0.1.0) (1.4.2)
Requirement already satisfied: python-dateutil>=2.8.1 in /opt/homebrew/lib/python3.9/site-packages (from pandas~=1.4->ycomp==0.1.0) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /opt/homebrew/lib/python3.9/site-packages (from pandas~=1.4->ycomp==0.1.0) (2022.1)
Requirement already satisfied: charset-normalizer~=2.0.0 in /opt/homebrew/lib/python3.9/site-packages (from requests~=2.26->ycomp==0.1.0) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.9/site-packages (from requests~=2.26->ycomp==0.1.0) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/homebrew/lib/python3.9/site-packages (from requests~=2.26->ycomp==0.1.0) (1.26.9)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.9/site-packages (from requests~=2.26->ycomp==0.1.0) (2021.10.8)
Requirement already satisfied: click<9.0.0,>=7.1.1 in /opt/homebrew/lib/python3.9/site-packages (from typer~=0.4->ycomp==0.1.0) (8.1.2)
Requirement already satisfied: six>=1.5 in /opt/homebrew/lib/python3.9/site-packages (from python-dateutil>=2.8.1->pandas~=1.4->ycomp==0.1.0) (1.16.0)
Installing collected packages: ycomp
Attempting uninstall: ycomp
Found existing installation: ycomp 0.1.0
Uninstalling ycomp-0.1.0:
Successfully uninstalled ycomp-0.1.0
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Running setup.py develop for ycomp
Successfully installed ycomp-0.1.0
### Code of Conduct
- [X] I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Python executable scripts installed through `console_scripts ...
The clear way to fix this is to move all Python modules (e.g. scripts/abc.py ) into your package's namespace, and modify 'abc=scripts.abc:main' ...
Read more >Installing Packages - Python Packaging User Guide - Python.org
Installing Packages¶. This section covers the basics of how to install Python packages. It's important to note that the term “package” in this...
Read more >User Guide - pip documentation v22.3.1
When globally installed packages are on the python path, and they satisfy the installation requirements, pip does nothing, and reports that requirement is...
Read more >Installation - pip documentation v22.3.1
If your Python environment does not have pip installed, there are 2 ... This is a Python script that uses some bootstrapping logic...
Read more >Easy Install - setuptools 65.6.3.post20221220 documentation
Easy Install is deprecated. Do not use it. Instead use pip. If you think you need Easy Install, please reach out to the...
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
@uranusjr Makes sense. I’ll do that.
Thanks to both of you for your comments.
Yes this should probably better be discussed in the setuptools tracker. I suspect it has something to do with how Homebrew configured the environment; it uses
distutils.cfg
to specify where to put things, and if that’s not correctly picked up or applied, things get installed to wrong locations.