469,603 Members | 2,049 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

can distutils windows installer invoke another distutils windows installer

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.

This seems to work fine, except that on Windows, I can't uninstall the
main package with Windows 'Add or Remove Programs' from the control
panel. If I install my main package with a bdist_winst installer, I
can.

Is there a way to set up a bdist_wininst installer to do what I can do
with the source dist?

Thanks in advance,

----
Tim Williams

May 10 '06 #1
1 1216
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.

May 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Lonnie Princehouse | last post: by
3 posts views Thread by Brian Elmegaard | last post: by
15 posts views Thread by Colin J. Williams | last post: by
1 post views Thread by Terry Hancock | last post: by
5 posts views Thread by Fuzzyman | last post: by
1 post views Thread by George van den Driessche | last post: by
4 posts views Thread by timothy.williams | last post: by
1 post views Thread by Alexandre Guimond | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.