setuptools version
60.10.0
Python version
3.9.12
OS
macOS 12.3.1
Additional environment information
Uses python formula from macOS Homebrew.
Description
Installing a package with console scripts defined using python setup.py develop does not actually install the console scripts. (It works with python setup.py install, however.)
This issue was previously discussed on the pypa/pip repo.
Expected behavior
Setuptools should install console script in the appropriate place.
How to Reproduce
- Create the following files.
setup.py
from setuptools import setup
setup(
entry_points = {
'console_scripts': [
'foo = foopackage:main',
],
}
)
foopackage/__init__.py
- Run
python setup.py develop.
Output
/opt/homebrew/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/opt/homebrew/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
creating foopackage.egg-info
writing foopackage.egg-info/PKG-INFO
writing dependency_links to foopackage.egg-info/dependency_links.txt
writing entry points to foopackage.egg-info/entry_points.txt
writing top-level names to foopackage.egg-info/top_level.txt
writing manifest file 'foopackage.egg-info/SOURCES.txt'
listing git files failed - pretending there aren't any
reading manifest file 'foopackage.egg-info/SOURCES.txt'
writing manifest file 'foopackage.egg-info/SOURCES.txt'
running build_ext
Creating /opt/homebrew/lib/python3.9/site-packages/foopackage.egg-link (link to .)
foopackage 0.0.0 is already the active version in easy-install.pth
Installing foo script to /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin
Installed /Users/alex/foo
Processing dependencies for foopackage==0.0.0
Finished processing dependencies for foopackage==0.0.0
setuptools version
60.10.0
Python version
3.9.12
OS
macOS 12.3.1
Additional environment information
Uses
pythonformula from macOS Homebrew.Description
Installing a package with console scripts defined using
python setup.py developdoes not actually install the console scripts. (It works withpython setup.py install, however.)This issue was previously discussed on the pypa/pip repo.
Expected behavior
Setuptools should install console script in the appropriate place.
How to Reproduce
setup.pyfoopackage/__init__.pypython setup.py develop.Output