no-installation version of python

M

mr.porteiro.head

Is there a stand-alone version of python out there that I can package
with my scripts so that I don't have to bother with something like
py2exe?
 
B

Bjoern Schliessmann

Is there a stand-alone version of python out there that I can
package with my scripts so that I don't have to bother with
something like py2exe?

Isn't this the exact intention of py2exe?

Regards,


Björn

--
BOFH excuse #247:

Due to Federal Budget problems we have been forced to cut back on
the number of users able to access the system at one time. (namely
none allowed....)
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Is there a stand-alone version of python out there that I can package
with my scripts so that I don't have to bother with something like
py2exe?

Yes, google for "movable Python".

Regards,
Martin
 
R

Robert Kern

Bjoern said:
Isn't this the exact intention of py2exe?

I think he wants a no-install (or, perhaps more accurately,
simply-unzip-to-install) version of the interpreter that doesn't need to touch
the Windows registry or copy DLLs to system locations. py2exe builds such a
thing (or nearly so) for the application itself, if it works. However, since
py2exe is somewhat fiddly, something like Movable Python might give him most of
the benefits with less effort.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
B

Bjoern Schliessmann

Robert said:
I think he wants a no-install (or, perhaps more accurately,
simply-unzip-to-install) version of the interpreter that doesn't
need to touch the Windows registry or copy DLLs to system
locations. py2exe builds such a thing (or nearly so) for the
application itself, if it works.

Ah, I understand. Thx.

Regards,


Björn
 
F

Fredrik Lundh

Is there a stand-alone version of python out there that I can package
with my scripts so that I don't have to bother with something like
py2exe?

why not just ship the standard python interpreter with your applications?

just make a copy of the c:\python24 (or 25) installation directory, and
add your scripts and the Python core DLL (which is usually installed
under c:\windows\system32\python24.dll (or 25) to it.

you may want to tweak your code to explicitly set sys.path to something
nice, so that global PYTHONPATH settings (etc) won't interfere with your
application. for extra bonus points, remove the stuff your application
doesn't need.

or you could just use py2exe.

or if you just want EXE files that you can use with an existing Python
install, use exemaker:

http://effbot.org/zone/exemaker.htm

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top