distutils

Dan Crosta dcrosta at sccs.swarthmore.edu
Tue May 9 16:40:16 CEST 2006


David S. wrote:
> I have a what I a typical source tree, something like:
> fsi\
> - common\ # some modules
> - db\ # some modules
> - someutility\ # my script
> 
> I would like to create a setup script to install my script as a script as well
> as the modules that is depends on, but where should the setup.py file live?  If
> I put it in ./someutility/ it can not find fsi.common or fsi.db.  

David

Your setup.py should live in fsi/setup.py. try:

---
from distutils.core import setup
setup(
   packages=['common', 'db'],
   scripts=['someutility/script1.py', 'someutility/script2.py'])
---

dsc



More information about the Python-list mailing list