Basic Packaging strategy question

bilmar19 at gmail.com bilmar19 at gmail.com
Sat Mar 4 18:08:15 EST 2017


I have a simple project that I want to package to put it on another machine but everything I have read so far about packaging ends up putting the whole install alongside  with 'packages' - typically in .../site-packages. 
This seems a strange place to launch an app from!

So, if I have an app with a main.py entry point is it ok for everything to be in .../site-packages/myproject?
Or, should I put everything except main.py in a package and then copy main.py wherever I want and use PIP to install the package containing the rest of the app?
 

simple example which ends up with needing to run:
 python /usr/local/lib/site_packages/myproject/main.py:

myproject
  setup.py
  myproject
    __init__.py
    main.py
    utils.py
    config.py


Is this the right way to go?

Thanks

Bill
  



More information about the Python-list mailing list