Skip to content

Commit

Permalink
using newest version of pyinstaller, not fixing osx package for now
Browse files Browse the repository at this point in the history
  • Loading branch information
doumdi committed Sep 5, 2018
1 parent 1c8ed3d commit d7a6b47
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ set (installer_args
# --clean
-y
--windowed
--icon ${APP_ICON}
--icon ${APP_ICON}
)

add_custom_target(python_package
Expand Down
7 changes: 7 additions & 0 deletions python/OpenIMUApp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from PyQt5.QtWidgets import QMainWindow, QWidget, QHBoxLayout
from PyQt5.QtWidgets import QApplication, QDialog, QPushButton, QTreeWidget, QTreeWidgetItem, QMessageBox
from PyQt5.QtGui import QIcon, QFont, QDragEnterEvent
import PyQt5
from PyQt5.QtCore import QLibraryInfo
from pprint import pprint

# from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage, QWebEngineSettings
from PyQt5.QtQuickWidgets import QQuickWidget
Expand Down Expand Up @@ -719,6 +722,10 @@ def dropEvent(self, event):
app = QApplication(sys.argv)
app.setAttribute(Qt.AA_EnableHighDpiScaling)

print(PyQt5.__file__)
paths = [x for x in dir(QLibraryInfo) if x.endswith('Path')]
pprint({x: QLibraryInfo.location(getattr(QLibraryInfo, x)) for x in paths})

# WebEngine settings
# QWebEngineSettings.globalSettings().setAttribute(QWebEngineSettings.PluginsEnabled, True)
# QWebEngineSettings.globalSettings().setAttribute(QWebEngineSettings.JavascriptCanOpenWindows, True)
Expand Down
10 changes: 8 additions & 2 deletions python/env/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,26 @@ if(WIN32)
PyQtChart
PyQt3D
pypiwin32
# PyInstaller
# Warning, development version for now to fix OSX package
https://github.com/pyinstaller/pyinstaller/tarball/develop
)
else(WIN32)
set (pip_packages
PyQt5
PyQtChart
PyQt3D
# PyInstaller
# Warning, development version for now to fix OSX package
https://github.com/pyinstaller/pyinstaller/tarball/develop
)
endif(WIN32)

set (conda_packages
# PyInstaller
cython
numpy
scipy
PyInstaller
jupyter
sqlalchemy
)
Expand Down Expand Up @@ -70,7 +76,7 @@ else(WIN32)
# TODO - INSTALL WITH CONDA ?
add_custom_target(
python-env
COMMAND ${ENV_PATH}/bin/pip install ${pip_packages}
COMMAND ${ENV_PATH}/bin/pip install --upgrade ${pip_packages}
WORKING_DIRECTORY ${ENV_PATH}
DEPENDS ${ENV_PATH}/bin/python
)
Expand Down

0 comments on commit d7a6b47

Please sign in to comment.