[py-dev] distutils question
Ian Bicking
ianb at colorstudy.com
Sat Apr 23 03:40:09 MEST 2005
holger krekel wrote:
> i have written simple distutils scripts before but i am now
> looking into writing a setup.py (and helpers) for the py lib.
>
> Thing is i would like to just say: please install the full
> package including any and all of its files (yes that means
> including '.svn' files, which you may disagree with but let's
> not argue about that right now). Is there an easy way to do
> it or do i have to hack things?
>
> I somehow can't believe that i have to more or less trick
> distutils into just installing a full directory tree,
> (compiling any pyc file in it as a bonus :-).
>
> Oh, and please only suggest things that work on
> python 2.2.x onwards if possible.
I might suggest Python eggs, though unfortunately they are Python 2.3
and onward: http://peak.telecommunity.com/DevCenter/PythonEggs -- I
haven't had a chance to use them, but it's next on my list.
Otherwise, I believe you have to enumerate all the files to be installed
(besides .py files in the enumerated packages), which you can do
automatically if there's a lot (os.listdir and the like).
--
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the py-dev
mailing list