Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"python setup.py install" does not create entry points

I need some help concerning setuptools. My setup.py looks like this:

setup(
    ...
    packages=find_packages(),
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'vsam = vsam.cmdline:execute',
        ]
    },
    ...
)

If I run python setup.py develop, the specified console script gets properly created. Running python setup.py sdist and installing the source distribution with pip install also creates the entry point.

But running python setup.py install does not create a console script.

Can anyone tell me why? If anyone needs more information, feel free to ask.

like image 680
miindlek Avatar asked Jun 29 '26 08:06

miindlek


1 Answers

Ok, I found out what was preventing setuptools from creating entry points. My MANIFEST.in file contained the line:

prune vsam.egg-info

After removing it, everything works fine.

like image 79
miindlek Avatar answered Jun 30 '26 21:06

miindlek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!