-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install -e
does not install console scripts
#11067
Comments
I just tried this procedure in a python:3.9 docker image and could not reproduce. |
@sbidoul It definitely occurs on macOS using Homebrew Python! |
If confirmed it is likely a setuptools issue, actually, as pip delegates installation to Could you try creating a |
@sbidoul I presume you mean with
from setuptools import setup
setup(
entry_points = {
'console_scripts': [
'foo = foopackage:main',
],
}
)
I then ran
The above generated On the other hand, if I run
So, clearly the To be honest, I'm not sure I'm well-qualified to report this issue properly. However, I suppose I can (more or less) copy and paste the above, as long as you confirm that I'm testing this in the right way. Thanks. |
Yes currently that is what pip does with setuptools projects (until setuptools implements PEP 660). In your latest example you also see setuptools saying What I was proposing is that you add, for the sake of testing, a simplified |
Oh I see. Anyway, I think from my example it's clear that it's a setuptools issue with the |
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 |
@uranusjr Makes sense. I'll do that. Thanks to both of you for your comments. |
Closing since this looks like a setuptools/Homebrew issue. :) |
Description
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
https://github.com/alexreg/ycomp
.pip install -e .
from within the repo.pip install .
.Output
The text was updated successfully, but these errors were encountered: