Prev: Solutions for hand injury from computer use (was: I strongly dislike Python 3)
Next: stupid question about html page
From: King on 1 Jul 2010 03:16 Hi, I am trying to build python a cross platform python executable builder to deploy python app. I tried various tools such as py2exe, pyinstaller, cx_freeze but some how they are not upto the mark except py2exe. Unfortunately py2exe is working only on windows based systems. The task is divide into 3 steps: 1. Collect all the modules(.pyo, .pyd, .dll, etc) required for your project. 2. set up temporary environment for python 3. run main.py using :python.exe main.py Initially I won't be creating an executable using main.py. I would be using shell scripting to execute the main.py. Q1. Which is most efficient way to fine all the modules required by your "main.py". Q2. For example, I have copied all the modules in "d:\project\lib\*.*" python.exe, python.dll, ms*.dll, main.py are copied to "d: \project". Before executing "python.exe main.py", I have to set up an environment var and point it to "d:\project\lib", so that python.exe can find the path for searching/loading modules. How do I do that? Q3. How do you convert your "main.py" into an executable? Prashant |