[Pythonmac-SIG] Building packages

Bob Ippolito bob at redivi.com
Thu Apr 28 17:32:08 CEST 2005


On Apr 28, 2005, at 5:03 AM, konrad.hinsen at laposte.net wrote:

> On Apr 26, 2005, at 11:27, Bob Ippolito wrote:
>
>
>> I do something equivalent to this (where both python installations  
>> have a pth file pointing to the src directory of py2app svn trunk,  
>> and the scripts dir of py2app is in my PATH):
>>
>> python2.4 `which bdist_mpkg` -z
>> python2.3 `which bdist_mpkg` -z
>>
>
> Thanks, that works fine. One more technical question: how did you  
> add documentation to the py2app package? By manually modifying the  
> automatically generated package, or using some non-obvious  
> functionality?

Subclassing the bdist_mpkg command.  Adding extra stuff to the  
package requires explicit support for bdist_mpkg inside the setup.py.

>> ... then I move dist/*.zip to the right place, generate md5  
>> checksums, edit the data file that generates the html, run a  
>> script that makes new html and then does rsync over ssh to the  
>> server.  Generally I'll do my own installation by downloading from  
>> the web site and installing that to make sure it works (but I only  
>> really test python 2.4 packages these days).
>>
>
> A more strategic question: what do you see as the role of your  
> package repository? A collection of what you happen to use, made  
> public? A standard repository that anyone can and should contribute  
> to? Or something else?

The idea is that it should be a standard repository that anyone can  
and should contribute to, where "anyone" is a small number of people  
that I can trust to build good working packages :)

> To give a concrete example, should I refer users of my packages to  
> your site for stuff like NumPy, or better offer a copy on my own  
> server to be sure to have 23.7 at all times?

pythonmac packages will only have the latest version of any given  
package around, so if Numeric is upgraded to 23.8 then that will be  
the only version available.  If you want old versions of things, then  
you should make a copy of it.  Though I usually don't delete old  
packages, you shouldn't depend on me keeping the zips around long  
after they've disappeared from the index.

-bob



More information about the Pythonmac-SIG mailing list