Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is site-packages appropriate for applications or just libraries?

Tags:

python

I'm in a bit of a discussion with some other developers on an open source project. I'm new to python but it seems to me that site-packages is meant for libraries and not end user applications. Is that true or is site-packages an appropriate place to install an application meant to be run by an end user?

like image 278
AaronS Avatar asked Apr 24 '09 18:04

AaronS


1 Answers

Once you get to the point where your application is ready for distribution, package it up for your favorite distributions/OSes in a way that puts your library code in site-packages and executable scripts on the system path.

Until then (i.e. for all development work), don't do any of the above: save yourself major headaches and use zc.buildout or virtualenv to keep your development code (and, if you like, its dependencies as well) isolated from the rest of the system.

like image 97
Carl Meyer Avatar answered Oct 19 '22 05:10

Carl Meyer