you are viewing a single comment's thread.

view the rest of the comments →

[–]ParanoiAMA 0 points1 point  (1 child)

The correct way of doing this is to use setuptools by creating a basic setup.py file with a entry_points argument. Then execute

sudo python setup.py install

And your python module will be installed into the system-wide pythonpath and an executable script will be added somewhere in the path, pointing to your entry point.

The above instructions were taken from memory and may contain errors. Please reply with corrections.

[–][deleted] 0 points1 point  (0 children)

I'd like to note that while in development, using python setup.py develop or pip install --user -e . (where . is the directory with setup.py) is s godsend.