can distutils windows installer invoke another distutils windows installer

Serge Orlov Serge.Orlov at gmail.com
Thu May 11 18:07:06 EDT 2006


timw.google wrote:
> Hi all.
>
> I have a package that uses other packages. I created a setup.py to use
> 'try:' and import to check if some required packages are installed. I
> have the tarballs and corresponding windows installers in my sdist
> distribution, so if I untar my source distribution and do 'python
> setup.py install', the script either untars the subpackages to a tmp
> directory and does an os.system('python setup.py install') (Linux), or
> os.system(<bdist_wininst installer>) (win32) for the missing
> subpackage.

I believe there are two ways to handle dependances: either you bundle
your dependances with your package (they just live in a directory
inside your package, you don't install them) or you leave resolution of
dependances to the application that uses your package. Handling
dependances like you do it (package installs other packages) doesn't
seem like a good idea to me.




More information about the Python-list mailing list