[Distutils] setup.py script using python interpreter from previous run

Tarek Ziadé ziade.tarek at gmail.com
Tue Nov 9 12:31:07 CET 2010


On Tue, Nov 9, 2010 at 12:04 PM, Fred Drake <fdrake at acm.org> wrote:
> On Tue, Nov 9, 2010 at 5:58 AM, Geoff Bache <geoff.bache at gmail.com> wrote:
>> Is this a bug?
>
> I think so.
>
>> Or have I missed something in my setup.py? It works of
>> course if I remove the generated "build" directory by hand, but it's
>> not so nice to have to remember to do that.
>
> You should be able to remove the build/ directory that was created
> where the package is unpacked, and then run the install command with
> your python2/bin/python.  The problem is that "build" and "install"
> are traditionally two distinct steps.  While setup.py takes care of
> both for you, it does detect that you switched Python's, so doesn't
> re-build for the second.

Since we're adding the "configure" command that will let install have
an access to all build options that were used, (still in Eric's
branch)
we should be able to know where the script is in the build tree, and
check in install_scripts that its not outdated with the file
timestamps + checking the shebang line.

Or... keep in that configure file the path to the interpreter and just
rebuild all scripts in case the interpreter has changed.


>
>
>   -Fred
>
> --
> Fred L. Drake, Jr.    <fdrake at acm.org>
> "A storm broke loose in my mind."  --Albert Einstein
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>



-- 
Tarek Ziadé | http://ziade.org


More information about the Distutils-SIG mailing list