[Distutils] Moving distribute_setup.py

PJ Eby pje at telecommunity.com
Thu Feb 14 20:21:04 CET 2013


On Thu, Feb 14, 2013 at 1:52 PM, Tarek Ziadé <tarek at ziade.org> wrote:
> On 2/14/13 6:32 PM, Jim Fulton wrote:
>>
>> On Thu, Feb 14, 2013 at 11:41 AM, Tarek Ziadé <tarek at ziade.org> wrote:
>>>
>>> Hey
>>>
>>> As Marc-André suggested, it would be a good thing to move the
>>> bootstrapping
>>> file to
>>> :https://pypi.python.org/packages/source/d/distribute/distribute_setup.py
>>
>> +1
>>
>> I need to do something similar for buildout bootstrap files.
>> How are you accomplishing this?
>
>
> By POSTing a multipart/form-data, like what the upload command does for
> sdists :
> http://hg.python.org/cpython/file/0f827775f7b7/Lib/distutils/command/upload.py#l68
>
> I can write a small script that does it  (bascially rip off
> upload.upload_file() and remove the part about the metadata)
>
> We could also write a custom sdist that does this, with an extra_dist_files,
> but oh well.. :)

Hm.  I just tried to do this with ez_setup.py for setuptools, and
PyPI's complaining that a .py file isn't a valid distribution.  (I'm
using the web interface, not the upload command, but same basic idea.)

AFAICT, we'll need the PyPI admins to implement support for .py
uploads for this to work.


More information about the Distutils-SIG mailing list