Hi folks, 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. any help and suggestions welcome, holger
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@colorstudy.com / http://blog.ianbicking.org
Ian Bicking wrote:
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.
Alternately, I don't know if setuptools requires Python 2.3, and it may be easier for you to use. setuptools is what's used to build Python eggs. -- Ian Bicking / ianb@colorstudy.com / http://blog.ianbicking.org
On Apr 22, 2005, at 9:49 PM, Ian Bicking wrote:
Ian Bicking wrote:
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.
Alternately, I don't know if setuptools requires Python 2.3, and it may be easier for you to use. setuptools is what's used to build Python eggs.
setuptools should work in 2.2 .. it used to anyway. -bob
participants (3)
-
Bob Ippolito -
hpk@trillke.net -
Ian Bicking