no setup.py in unzipped Distutils

Thomas Heller theller at python.net
Wed Mar 19 13:08:08 EST 2003


Donnal Walter <donnal at donnal.net> writes:

> Thomas Heller wrote:
> > Donnal Walter <donnal at donnal.net> writes:
>  >
> >>This appears to work fine *except* that when I unzip the resulting
> >>archive file, there is no setup.py script file, so how does the end
> >>user run "python setup.py install" from the Mindwrapper-0.1.01
> >>directory? Thanks.
> > Are you using Windows? There's a difference whether you run
> 
> >   'setup.py sdist'
> > or
> >   'c:\python22\python setup.py sdist'
> > I don't know if this is also the case on non-Windows systems.
> 
> >
> 
> 
> Yes, I am using Windows, and as far as I can tell the same thing
> happens with either of the two commands you mention above. OTOH I did
> not delete the default manifest created by disutils between trials, so
> that may have influenced the second trial.

Right.  The problem, IIRC, is that 'setup.py sdist' passes the full
absolute pathname of setup.py to distutils, and it gets confused.
It is very annoying.

This should be fixed in the distutils of 2.3, and since you're not using
extension modules as far as I can tell, you could also use this.

> But I did take a look at
> the manifest that was created and manually added setup.py to it, and
> now it works. Thank you for helping me think my way through this
> problem.

Thomas




More information about the Python-list mailing list