From: Michael F. <mi...@pc...> - 2005-09-05 07:59:36
|
JustFillBug wrote: > On 2004-12-16, Thomas Heller <th...@py...> wrote: > >>If you want to additionally import modules from the file system, you >>*must* add the directory of sys.executable to sys.path yourself. > > > Is it possible to specify a path to the sys.path in a setup.py file at > build time? I am thinking to create a package which contains all the > python default modules. The package will be installed as a standalone > runtime library. The package will be about 2.8MB compressed with > python23.dll included, without Tkinter. library.zip is 1.3MB. > This is part of what I've done with Movable Python. http://www.voidspace.org.uk/python/movpy/ It includes a script called 'PyDistFreeze.py' which includes the whole of the standard library. (Plus any additional packages/modules you specify). It then builds an executable from another script called 'movpy.py' (which becomes 'movpy.exe'). This script then runs any normal python program in an environment that 'seems normal' to it. You may well be able to adapt a Movable Python distribution to your purposes - or adapt 'PyDistFreeze.py' to create a suitable distribution. All the best, Fuzzyman http://www.voidspace.org.uk/python > With the above package installed, future py2exe packages can assume all > the python runtime are installed. Only program related python files > needed to be ship. > > The problem is of cause a py2exe have to be able to load library.zip and > *.pyd from the 'python runtime package'. Can that be done now or in the > future? > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > |