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

761 views Asked by At

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.

1

There are 1 answers

0
miindlek On BEST ANSWER

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.