Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51740

Re: how to package embedded python?

Newsgroups comp.lang.python
Date 2013-08-01 08:57 -0700
References <99b6fbcb-5456-4421-89d6-d0453b722e8c@googlegroups.com> <kt6n12$55k$1@dont-email.me> <110caaff-720a-4cc6-a4d4-ad7a7fe612dd@googlegroups.com> <8505c5aa-0b16-4c32-bab3-17370b4f8f2e@googlegroups.com> <fe78aea2-8d5d-4534-bd77-c2cb94978e64@googlegroups.com>
Message-ID <e0867de9-fdbb-44be-9880-e770ce506cf9@googlegroups.com> (permalink)
Subject Re: how to package embedded python?
From CM <cmpython@gmail.com>

Show all headers | View raw


On Wednesday, July 31, 2013 11:47:19 AM UTC-4, David M. Cotter wrote:
> okay, well that might turn out to be useful, except i don't quite know how to use it, and there are no "from scratch" instructions.
> 
> 
> 
> i managed to download "py2exe-0.6.9.zip" and unzip it, but how does one "install" this package?  (yes, still a newb at that)

What's your OS?  For Windows there is an exe that installs it.  Did you download that?

Or you could, in the command line, do:

cd c:\some_folder\the_py2exe_folder
python setup.py install 

(The Python site has a huge page of details on that route. http://docs.python.org/2/install/)

Or you could probably get away with just moving the py2exe folder to 
Python27\site-packages (or whatever Python you have)

Or you could first install pip (recommended!) and then just:
pip install py2exe
(http://dubroy.com/blog/so-you-want-to-install-a-python-package)

> then, once installed, how do i say "include the entire world" instead of just "mymodule" ?  cuz the point of embedding python on my app is that the end-user can run any script at all, not just one module.

I don't know.  As I understand it, py2exe will pull whatever is needed in Python to run your module.  If your module requires all of Python, I guess that will work.  I think regardless of the module, even if it is a "Hello, World" program, py2exe has to include the Python interpreter.  

Unfortunately, and surprisingly, the py2exe site is still down.  Odd.  If it returns, that should help.  There is also a py2exe users mailing list that you could find by Googling for it.



In terms of

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-25 14:05 -0700
  Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-26 08:54 -0700
    Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-29 09:22 -0700
  Re: how to package embedded python? Kevin Walzer <kw@codebykevin.com> - 2013-07-29 17:38 -0400
    Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-30 13:23 -0700
      Re: how to package embedded python? CM <cmpython@gmail.com> - 2013-07-30 18:57 -0700
        Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-31 08:47 -0700
          Re: how to package embedded python? CM <cmpython@gmail.com> - 2013-08-01 08:57 -0700

csiph-web