I'm having problem trying to compile the current version of PyInstaller
on FC4 and FC5. The compilation is giving the same error, that it can
not find the python library even when the path is explicitly set.
I did a "setup.py" (see attachment) which produce exactly the same "gcc"
statement than our current "Make.py" in the "source/linux" directory.
Now, I'm not been able to run it yet on my machines because, again, it
behaves exactly as the current one. I'm wondering if it may work in
python < 2.4. Can anyone with a python < 2.4 test this on a Linux
machine (it should also work for cygwin with python < 2.4)?
I have tried even older version of pyinstaller and I'm not able to
compile them on FC4 and FC5 witn python 2.4.x
Tonight I hope to finally test the script on FC2 or FC3 on another
machines, but in the meantime here is the procedure in case anyone like
to test it as well:
1) Save the attachment file into the source/linux directory
2) Start compiling pyinstaller as you will normally do
3) Inside source/linux:
python ./setup.py clean
python ./setup.py build
This should generate a build/lib.linux-i686-2.4/run.so and a
build/lib.linux-i686-2.4/run_d.so. Manually copy&rename it to the proper
location:
cp build/lib.linux-i686-2.4/run.so ../../support/loader/run
cp build/lib.linux-i686-2.4/run_d.so ../../support/loader/run_d
4) Compile your python script with pyinstaller as you will normally do
5) Let me know the resutls ;-)
-William
# GNU GPL
#
# WARNING: THIS PART IS STILL UNDER DEVELOPMENT
#
try:
from distutils import sysconfig
except:
print "ERROR: distutils with sysconfig required"
sys.exit(1)
from distutils.core import setup, Extension
LIBDIRS = [sysconfig.get_python_lib(True, True),'/usr/lib','/lib']
INCDIRS = [sysconfig.get_config_vars('INCLUDEDIR')[0],sysconfig.get_python_inc(True), '../common']
CFLAGS = sysconfig.get_config_vars('CFLAGS')[0].split()
CFLAGS_D = CFLAGS+['-D_DEBUG','-DLAUNCH_DEBUG']
LIBS = [sysconfig.get_config_vars('INSTSONAME')[0][3:]]
run_loader = Extension('run',
define_macros = [('MAJOR_VERSION', '1'),
('MINOR_VERSION', '1')],
include_dirs = INCDIRS,
libraries = LIBS,
library_dirs = LIBDIRS,
extra_compile_args = CFLAGS,
sources = ['main.c','getpath.c','../common/launch.c'])
run_d_loader = Extension('run_d',
define_macros = [('MAJOR_VERSION', '1'),
('MINOR_VERSION', '1')],
include_dirs = INCDIRS,
libraries = LIBS,
library_dirs = LIBDIRS,
extra_compile_args = CFLAGS_D,
sources = ['main.c','getpath.c','../common/launch.c'])
setup (name = 'PyInstaller loader',
version = '1.1',
description = 'This is a helper package',
author = 'William Caban',
author_email = '[EMAIL PROTECTED]',
url = 'http://pyinstaller.hpcf.upr.edu',
long_description = '''This is a helper package to be used by PyInstaller''',
ext_modules = [run_loader,run_d_loader])
# FIXME:
#
# This script has to be modified to correctly name and install
# the "extensions" that in our case are our loaders. They should
# be installed in ../../support/loader/ as "run" and "run_d"
#
_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller