Newest cx_freeze version from bitbucket as from 07.09.14.
Build Platform MacOS 10.9.4
Python3
QT 5.3.0 PyQT5

running python3 myfile.py bdist_mac, on the local machine the package 
works, but on a test machine without QT installed, i get an import 
error:ImportError: dlopen(./lib/python3.4/PyQt5.QtWidgets.so, 2)
The path is not going tho the bundled PyQT4.QtWidgets.so but to the 
path where the libaray is installed on the development machine. The 
libary is actualy in the bundle, but the path is wrong. How to set the 
correct path in the setup file? My actual setup file is attached below.

Any tips would be great.
Regards Andreas

Setup file:

import sys

from cx_Freeze import setup, Executable

base = None

if sys.platform == "win32":
    base = "Win32GUI"

else:
    include_files = 
[("/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.4/Python","Python")]
 



build_options = {"path": sys.path,
                 #"includes": includes,
                 "include_files":include_files,
                 #"icon":windows_icon,
                }

if sys.platform == "win32":
    setup(
            name = application_title,
            version = application_version,
            description = application_description,
            options = {"build_exe" : build_options},
            executables = [Executable(main_python_file, base = base)])
else:
    setup(
            name = application_title,
            version = application_version,
            description = application_description,
            options = {"build_exe" : build_options},
            executables = [Executable(main_python_file, base = base, 
targetName= application_title)])




------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to