Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pushing python to multiple windows machines

9 views
Skip to first unread message

shke...@gmail.com

unread,
Oct 21, 2005, 7:44:23 AM10/21/05
to
I am working on a project that requires python to be installed on a
large number of windows servers and was wondering if anyone has found a
method to do this. I found the article from 2003, but nobody ever
stated that they have found an option for this.

http://groups.google.com/group/comp.lang.python/browse_frm/thread/f42f0813bc271995?tvc=1&q=%22Pushing+Python+to+Windows+workstations%22

-shawn

Tim Golden

unread,
Oct 21, 2005, 7:55:51 AM10/21/05
to pytho...@python.org
[shke...@gmail.com]

> I am working on a project that requires python to be installed on a
large
> number of windows servers and was wondering if anyone has found a
method
> to do this. I found the article from 2003, but nobody ever stated
that
> they have found an option for this.

I'm not quite clear whether you're asking this question from a Python
point-of-view (eg running Python from a shared drive) or from a Windows
point-of-view.

If the former then perhaps have a look at the Moveable Python project:

http://www.voidspace.org.uk/python/movpy/

I admittedly haven't tried it, but since it's designed to run off memory
sticks etc. I imagine running from a shared drive shouldn't be too
difficult.

There are (commercial) products such as LanDesk which facilitate the
latter, and in any case the Python installation doesn't do anything
especially perverse. If you did want to install on each machine,
perhaps you could get some advice from the Moveable Python people.

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

shke...@gmail.com

unread,
Oct 21, 2005, 9:22:47 AM10/21/05
to
hey tim -

Thanks for you input. I'm looking at it from the Windows perspective
of needing to push a python interpreter out to multiple machines. I'll
check out Moveable Python as you suggested.

thanks
-shawn

Larry Bates

unread,
Oct 21, 2005, 9:47:36 AM10/21/05
to
Do you really need to install the interpreter or do you
want to install a Python application to a bunch of servers?
Using a combination of py2exe and InnoInstaller I push
applications (and services, and COM objects) to lots of
Windows servers just as normal setup.exe files which can
be distributed with lots of tools.

Larry Bates

Roger Upole

unread,
Oct 21, 2005, 9:49:43 AM10/21/05
to

You can use WMI to install an Msi installer on a remote machine.
The Win32_Product class has an Install method:

import win32com.client
wmi=win32com.client.gencache.EnsureDispatch('wbemscripting.swbemlocator',0)
s=wmi.ConnectServer('servername')

p=s.Get('win32_product')
inparams=p.Methods_('Install').InParameters
inparams.Properties_('PackageLocation').Value=r'\\someserver\someshare\python-2.4.2.msi'
inparams.Properties_('AllUsers').Value=True

outparams=p.ExecMethod_('Install',inparams)
print outparams.Properties_('ReturnValue') ## zero on success

Roger

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

shke...@gmail.com

unread,
Oct 21, 2005, 12:52:34 PM10/21/05
to
Thanks Roger & Larry. Both of your suggestions are very helpful!

-shawn

0 new messages