Re: possible to run a python script without installing python?

2011-03-16 Thread Santoso Wijaya
py2exe does this for you...

~/santa


On Wed, Mar 16, 2011 at 8:02 AM, David Jackson  wrote:

> i need to run a python script on any arbitrary server and don't want to do
> an actual installation. i figured i could do a clean install on my machine
> and install whatever libraries would be needed, then zip them all up for
> remote deployment. to avoid bloating, i am wondering which files i can
> safely omit.
>
>
> On Tue, Mar 15, 2011 at 8:48 PM, Katie T  wrote:
>
>>
>> On Tue, Mar 15, 2011 at 8:58 PM, davidj411  wrote:
>>
>>> it seems that if I copy the python.exe binary and the folders
>>> associated with it to a server without python, i can run python.
>>> does anyone know which files are important to copy and which can be
>>> omitted?
>>>
>>> i know about py2exe and have had no luck with it.
>>
>>
>> What's the reason for wanting to avoid installing Python? - are you just
>> trying to save disk space?
>>
>> If it's a case of not having admin rights, you can just copy the Python
>> directory, I don't believe it has any dependencies anywhere else.
>>
>> Katie
>> --
>> CoderStack
>> http://www.coderstack.co.uk
>> The Software Developer Job Board
>>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: possible to run a python script without installing python?

2011-03-16 Thread David Jackson
i need to run a python script on any arbitrary server and don't want to do
an actual installation. i figured i could do a clean install on my machine
and install whatever libraries would be needed, then zip them all up for
remote deployment. to avoid bloating, i am wondering which files i can
safely omit.


On Tue, Mar 15, 2011 at 8:48 PM, Katie T  wrote:

>
> On Tue, Mar 15, 2011 at 8:58 PM, davidj411  wrote:
>
>> it seems that if I copy the python.exe binary and the folders
>> associated with it to a server without python, i can run python.
>> does anyone know which files are important to copy and which can be
>> omitted?
>>
>> i know about py2exe and have had no luck with it.
>
>
> What's the reason for wanting to avoid installing Python? - are you just
> trying to save disk space?
>
> If it's a case of not having admin rights, you can just copy the Python
> directory, I don't believe it has any dependencies anywhere else.
>
> Katie
> --
> CoderStack
> http://www.coderstack.co.uk
> The Software Developer Job Board
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: possible to run a python script without installing python?

2011-03-16 Thread anpeo
On Mar 16, 1:15 am, Terry Reedy  wrote:
> On 3/15/2011 4:58 PM, davidj411 wrote:
>
> > it seems that if I copy the python.exe binary and the folders
> > associated with it to a server without python, i can run python.
> > does anyone know which files are important to copy and which can be
> > omitted?
>
> For the 3.2 Windows installation, you should be able to omit Doc,
> Lib/test, Lib/turtledemo, and Tools. Three of those are optional
> installs anyway. Lib/idlelib could almost certainly go if not running
> IDLE from the server (which would be unlikely). If not using tcl/tk,
> several files in DLLs, Lib, and libs and the tcl directory can go.
>
> Translate as needed for *nix.
>
> --
> Terry Jan Reedy

I use cx_freeze witch also works with Python 3.x
Test it, for me it was easier than to figure out what to copy

http://cx-freeze.sourceforge.net/

// Anders
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: possible to run a python script without installing python?

2011-03-15 Thread Katie T
On Tue, Mar 15, 2011 at 8:58 PM, davidj411  wrote:

> it seems that if I copy the python.exe binary and the folders
> associated with it to a server without python, i can run python.
> does anyone know which files are important to copy and which can be
> omitted?
>
> i know about py2exe and have had no luck with it.


What's the reason for wanting to avoid installing Python? - are you just
trying to save disk space?

If it's a case of not having admin rights, you can just copy the Python
directory, I don't believe it has any dependencies anywhere else.

Katie
-- 
CoderStack
http://www.coderstack.co.uk
The Software Developer Job Board
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: possible to run a python script without installing python?

2011-03-15 Thread Terry Reedy

On 3/15/2011 4:58 PM, davidj411 wrote:

it seems that if I copy the python.exe binary and the folders
associated with it to a server without python, i can run python.
does anyone know which files are important to copy and which can be
omitted?


For the 3.2 Windows installation, you should be able to omit Doc, 
Lib/test, Lib/turtledemo, and Tools. Three of those are optional 
installs anyway. Lib/idlelib could almost certainly go if not running 
IDLE from the server (which would be unlikely). If not using tcl/tk, 
several files in DLLs, Lib, and libs and the tcl directory can go.


Translate as needed for *nix.

--
Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list


Re: possible to run a python script without installing python?

2011-03-15 Thread scattered
On Mar 15, 4:58 pm, davidj411  wrote:
> it seems that if I copy the python.exe binary and the folders
> associated with it to a server without python, i can run python.
> does anyone know which files are important to copy and which can be
> omitted?
>
> i know about py2exe and have had no luck with it.

Wouldn't figuring out how to use py2exe be, well, *easier* than
figuring out what a minimal install would look like? Your question
can't be answered in the abstract. Something is important if you use
it. Without seeing your code (and without detailed knowledge of Python
internals), there is no way to tell what that might be. You can of
course omit things that you don't use - but because of various
dependencies you might be using a file without knowing it. One of the
purposes of a tool like py2exe is to automatically handle such
dependencies.
-- 
http://mail.python.org/mailman/listinfo/python-list


possible to run a python script without installing python?

2011-03-15 Thread davidj411
it seems that if I copy the python.exe binary and the folders
associated with it to a server without python, i can run python.
does anyone know which files are important to copy and which can be
omitted?

i know about py2exe and have had no luck with it.
-- 
http://mail.python.org/mailman/listinfo/python-list