My git repository looks like this:
setup.py
src/single_file_module_and_script.py
src/test_single_file_module_and_script.py
I would like, without using setuptools, to have setup.py install
install src/single_file_module_and_script.py as an executable script named single-file-module-and-script
. I would prefer not to rename the .py file in the repository as I would like to keep the tests in a separate file. The tests do import single_file_module_and_script
.
I don't mind strongly either way if setup.py install
installs the code as a python module also.
I would also like other distutils commands, such as python setup.py sdist
, to work.
How can I achieve that?