[Tutor] Do I have to include certain items in the setup.py file?
dyoo at hkn.eecs.berkeley.edu
Sat Sep 17 00:36:41 CEST 2005
On Fri, 16 Sep 2005, Nathan Pinno wrote:
> It sure does. Thanks Danny. One final question: Is it possible to write
> one setup.py and use it for multiple Python programs?
Just to make sure, we are talking about the Distutils setup.py that's used
to build distributions of Python applications, right?
It might not be so useful to clone setup.py, since we'd probably want to
make changes for each program, just because we'd probably label our
programs with different names just to keep ourselves from getting
That is, technically, it's possible to call all our programs some generic
name like "program.py", and to keep all our programs in separate
subdirectories. And in that way, the same 'setup.py' could work on
different applications. But still, I don't see this being done very often
because people often like to use descriptive --- and varying --- names for
In my own practice, I usually just write a setup.py from scratch (or copy
a template), and customize it to the particular application that I'm
packaging up. Does this make sense?
Best of wishes!
More information about the Tutor