New submission from Malcolm Purvis <malc...@purvis.id.au>: In Python 2.7.2, Linux executables built with freeze.py will only run on the machine that contains the original build directory. This defeats the purpose of having frozen programs. This problem did not exist in Python 2.5.
The following steps reproduce the problem: 1) Build a copy of python: $ tar -xf Python-2.7.2.tar.bz2 $ cd Python-2.7.2 $ ./configure --prefix=`pwd`/install $ make $ make install 2) In another directory, build a frozen program: $ echo 'print "Hello World"' >hello.py $ ~/src/Python-2.7.2/python ~/src/Python-2.7.2/Tools/freeze/freeze.py hello.py $ make $ ./hello Hello World Copy the binary to another machine: $ $ ./hello Traceback (most recent call last): File "/home/malcolmp/src/Python-2.7.2/Lib/site.py", line 563, in <module> File "/home/malcolmp/src/Python-2.7.2/Lib/site.py", line 545, in main File "/home/malcolmp/src/Python-2.7.2/Lib/site.py", line 278, in addusersitepackages File "/home/malcolmp/src/Python-2.7.2/Lib/site.py", line 253, in getusersitepackages File "/home/malcolmp/src/Python-2.7.2/Lib/site.py", line 243, in getuserbase File "/home/malcolmp/src/Python-2.7.2/Lib/sysconfig.py", line 520, in get_config_var File "/home/malcolmp/src/Python-2.7.2/Lib/sysconfig.py", line 419, in get_config_vars File "/home/malcolmp/src/Python-2.7.2/Lib/sysconfig.py", line 287, in _init_posix IOError: invalid Python installation: unable to open /home/malcolmp/src/Python-2.7.2/install/lib/python2.7/config/Makefile (No such file or directory) ---------- components: Demos and Tools messages: 144315 nosy: malcolmp priority: normal severity: normal status: open title: Frozen programs require the original build directory in order to run. type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13011> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com