From: Mirko Vogt on
Hey,

is there a way to use python2.6 without having used the installation
routine?

When I install python2.6 and copy over the python-directory (C:\programs
\python2.6) to another windows host and trying to execute python.exe
there, I get an error that python26.dll could not be found.

On the host where I used the installation routine, python26.dll is
stored in C:\windows\system32 which (obviously) isn't on the host where
I just copied the python directory to.

Is it possible to include python26.dll in the application folder or tell
python not to look in C:\windows\system32 for its library?

Backround is: I'd like to put the python directory on a share which is
mounted by several windows hosts.
That way I do not need to touch every windows host when I'm going to
update a python installation but just the one which is sharing it to all
others.

Thanks a lot in advance!

mirko



--
This email address is used for mailinglist purposes only.
Non-mailinglist emails will be dropped automatically.
If you want to get in contact with me personally, please mail to:
mirko.vogt <at> nanl <dot> de

From: Terry Reedy on
On 4/29/2010 11:25 AM, Mirko Vogt wrote:
> Hey,
>
> is there a way to use python2.6 without having used the installation
> routine?
>
> When I install python2.6 and copy over the python-directory (C:\programs
> \python2.6) to another windows host and trying to execute python.exe
> there, I get an error that python26.dll could not be found.
>
> On the host where I used the installation routine, python26.dll is
> stored in C:\windows\system32 which (obviously) isn't on the host where
> I just copied the python directory to.
>
> Is it possible to include python26.dll in the application folder or tell
> python not to look in C:\windows\system32 for its library?
>
> Backround is: I'd like to put the python directory on a share which is
> mounted by several windows hosts.
> That way I do not need to touch every windows host when I'm going to
> update a python installation but just the one which is sharing it to all
> others.

Try
Movable Python - The Portable Python Distribution.
www.voidspace.org.uk/python/movpy/

From: John Yeung on
On Apr 29, 4:32 pm, Terry Reedy <tjre...(a)udel.edu> wrote:
>
> Try Movable Python - The Portable Python Distribution.
> www.voidspace.org.uk/python/movpy/

You could also try Portable Python, which is somewhat newer and has
2.5, 2.6, and 3.0:

http://www.portablepython.com/

John
From: Christian Heimes on
Mirko Vogt wrote:
> Hey,
>
> is there a way to use python2.6 without having used the installation
> routine?
>
> When I install python2.6 and copy over the python-directory (C:\programs
> \python2.6) to another windows host and trying to execute python.exe
> there, I get an error that python26.dll could not be found.
>
> On the host where I used the installation routine, python26.dll is
> stored in C:\windows\system32 which (obviously) isn't on the host where
> I just copied the python directory to.
>
> Is it possible to include python26.dll in the application folder or tell
> python not to look in C:\windows\system32 for its library?

You need to include more than just python26.dll. The correct MSVCRT
version must be shipped with your package or it has to be installed by
your users.

Fear not, my friend! The solution for your quest is easy to come by.
Install Python 2.6 again but this time chose "install only for me"
instead of "for all users". With this option all necessary files land
into one directory. As long as you have no need for fancy stuff like COM
and Windows services you have to worry about python26.dll in Windows'
system32 directory.

At work we run our entire application stack including Python2.6, tons of
Python packages with extensions, a complete Java runtime environment and
a pile of DLLs from svn. Works like a charm.

Christian

From: Mirko Vogt on
Thanks a lot for all your solutions!
Tried installing it "just for the current user" as suggested by
Christian and it works like a charme, so there seems to be no need for
another python distribution in this case.

Thanks a lot once again!

mirko


On Fri, 2010-04-30 at 01:34 +0200, Christian Heimes wrote:
> Mirko Vogt wrote:
> > Hey,
> >
> > is there a way to use python2.6 without having used the installation
> > routine?
> >
> > When I install python2.6 and copy over the python-directory (C:\programs
> > \python2.6) to another windows host and trying to execute python.exe
> > there, I get an error that python26.dll could not be found.
> >
> > On the host where I used the installation routine, python26.dll is
> > stored in C:\windows\system32 which (obviously) isn't on the host where
> > I just copied the python directory to.
> >
> > Is it possible to include python26.dll in the application folder or tell
> > python not to look in C:\windows\system32 for its library?
>
> You need to include more than just python26.dll. The correct MSVCRT
> version must be shipped with your package or it has to be installed by
> your users.
>
> Fear not, my friend! The solution for your quest is easy to come by.
> Install Python 2.6 again but this time chose "install only for me"
> instead of "for all users". With this option all necessary files land
> into one directory. As long as you have no need for fancy stuff like COM
> and Windows services you have to worry about python26.dll in Windows'
> system32 directory.
>
> At work we run our entire application stack including Python2.6, tons of
> Python packages with extensions, a complete Java runtime environment and
> a pile of DLLs from svn. Works like a charm.
>
> Christian
>




--
This email address is used for mailinglist purposes only.
Non-mailinglist emails will be dropped automatically.
If you want to get in contact with me personally, please mail to:
mirko.vogt <at> nanl <dot> de