[Distutils] bdist_wininst and dependencies with setuptools

Manlio Perillo manlio.perillo at gmail.com
Fri Sep 10 13:24:12 CEST 2010

Hash: SHA1

Il 10/09/2010 04:13, P.J. Eby ha scritto:
> At 11:46 PM 9/9/2010 +0200, Manlio Perillo wrote:
>> Il 09/09/2010 23:03, P.J. Eby ha scritto:
>> > At 07:37 PM 9/9/2010 +0200, Manlio Perillo wrote:
>> >> I would like to avoid having to create an all in one installer using
>> >> pyinstalled; is this possible?
>> >
>> > No; bdist_wininst doesn't support dependencies.
>> Is this hard to implement?
> Well, you'd need to write some C code, or else implement something in a
> Python post-install script.  I'm not sure how difficult that would be,
> but it's more effort than I'd personally like to put in.

I will try something using the post-install script; as an example
executing `setup.py install` from it.

By the way, is it possible, from the postinstall script, to know the
Python instance used?
I need it because I would like to create a shortcut of a script to the
desktop, and I need to know the full path of the script.

>> What about distutils2?
> I don't know if they're working on that.

There is one thing I'm not sure to understand about the bdist_wininst
and bdist_msi commands: what is the reason why they don't simply execute
`python setup.py install` in the background?

> [...]
> Then py2exe or some other sort of installer is probably your best bet.

I will do some tests to see if it works without too many problems.

Thanks   Manlio
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the Distutils-SIG mailing list