I have a Python3 CLI (using Click) with the following setup.py:
from setuptools import setup, find_packages
setup(
# ...
entry_points='''
[console_scripts]
importdb=scripts.importdb:cli
''',
)
This works if I do pip install -e .
: I can just run importdb ...
from the command line. How can I package this into an executable file that can be run without pip install -e
?
I have tried python setup.py bdist_egg
, which produces an egg file, but trying to execute it gives Syntax error: word unexpected (expecting ")")
. I'm not really sure where to go from here - I've searched for instructions on this but nothing seems to work.