By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,996 Members | 1,498 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,996 IT Pros & Developers. It's quick & easy.

Shipping embedded Python project

P: n/a
Hello,

I've extended a C++ project with Python.
I'd like to ship the new project with all the required Python modules
but *without* installing Python on client machines.

I know that py2exe/Installer/cx_freeze ... know how to find which
modules are needed and pack them.

Is there a "standard" way to do this? I didn't find anything in the docs.

Thanks.
Miki
Jul 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Miki Tebeka <mi*********@zoran.com> writes:
Hello,

I've extended a C++ project with Python.
I'd like to ship the new project with all the required Python modules
but *without* installing Python on client machines.

I know that py2exe/Installer/cx_freeze ... know how to find which
modules are needed and pack them.

Is there a "standard" way to do this? I didn't find anything in the docs.


py2exe and cx_freeze (not 100% sure about the latter) use modulefinder
to find the modules needed. Installer has it's own mf5.py.

Or you use py2exe to build a zip-compatible archive, and insert it into
sys.path in your program. Do not specify any of the console and windows
options, and pass your 'main-module' with the --includes command line
option. py2exe will happily create a dist directory for you, without an
exe-file.

Thomas
Jul 18 '05 #2

P: n/a
Hello Thomas,
Or you use py2exe to build a zip-compatible archive, and insert it into
sys.path in your program. Do not specify any of the console and windows
options, and pass your 'main-module' with the --includes command line
option. py2exe will happily create a dist directory for you, without an
exe-file.


Great! thanks.
Miki
Jul 18 '05 #3

P: n/a
Hello Thomas,
Or you use py2exe to build a zip-compatible archive, and insert it into
sys.path in your program. Do not specify any of the console and windows
options, and pass your 'main-module' with the --includes command line
option. py2exe will happily create a dist directory for you, without an
exe-file.


Great! thanks.
Miki

Jul 18 '05 #4

P: n/a
Miki Tebeka <mi*********@zoran.com> writes:
Hello Thomas,
Or you use py2exe to build a zip-compatible archive, and insert it into
sys.path in your program. Do not specify any of the console and windows
options, and pass your 'main-module' with the --includes command line
option. py2exe will happily create a dist directory for you, without an
exe-file.


Great! thanks.


If this works for you, it would be great if you write up a small recipe
into the py2exe wiki.

Thomas
Jul 18 '05 #5

P: n/a
Hello Thomas,
If this works for you, it would be great if you write up a small recipe
into the py2exe wiki.

http://starship.python.net/crew/thel...ippingEmbedded

First time doing Wiki stuff. Fun.
Miki
Jul 18 '05 #6

P: n/a
Hello Thomas,
If this works for you, it would be great if you write up a small recipe
into the py2exe wiki.

http://starship.python.net/crew/thel...ippingEmbedded

First time doing Wiki stuff. Fun.
Miki

Jul 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.