Skip to content

Commit

Permalink
Re-tagging 1.4.1 with actual fix. Using PyQt5-minimal version 0.3.0 n…
Browse files Browse the repository at this point in the history
…ow, should fix #12
  • Loading branch information
smarie committed Oct 23, 2017
1 parent 5cf7caf commit d1cddf8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup_cx_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@
qt_dir = os.path.dirname(shutil.which('qmake'))
print('Found qt bin/ directory at : ' + qt_dir)
qt_platforms_folder = os.path.abspath(os.path.join(qt_dir, os.path.pardir, 'plugins', 'platforms'))
qt_libs_folder = os.path.abspath(os.path.join(qt_dir, os.path.pardir, 'lib'))
if sys.platform == "win32":
files_to_include.append((os.path.join(qt_platforms_folder, 'qwindows.dll'), 'platforms/qwindows.dll'))
# else:
# not needed ?
# files_to_include.append((os.path.join(qt_platforms_folder, 'libqxcb.so'), 'platforms/libqxcb.so'))
else:
# we have to include two additional Qt libraries
files_to_include.append((os.path.join(qt_platforms_folder, 'libqxcb.so'), 'platforms/libqxcb.so'))
files_to_include.append((os.path.join(qt_libs_folder, 'libQt5DBus.so.5'), 'libQt5DBus.so.5'))
files_to_include.append((os.path.join(qt_libs_folder, 'libQt5XcbQpa.so.5'), 'libQt5XcbQpa.so.5'))

# unfortunately for some reason the dll files from the current anaconda env do not work,
# while the one from root (Anaconda/Library/plugins/platforms) works, so we include the latter in the sources
Expand Down

0 comments on commit d1cddf8

Please # to comment.