using script as both library and executable in python packages -


with python package has file myparser (no .py) possible use file both script in setup.py , library? e.g. do:

mypackage   mypackage/__init__.py   mypackage/internals.py   mypackage/myparser 

and in setup.py use myparser script (so gets installed in bin/) , use within library, e.g. in internals.py as:

import myparser mp 

make normal .py module can imported, , define entry point. automatic script creation take care of creating script in bin call entry point method.


Comments