@@ -1,11 +1,12 | |||
|
1 | 1 | # This Python file uses the following encoding: utf-8 |
|
2 | 2 | import os |
|
3 | import os | |
|
4 | os.environ['QT_API'] = 'pyside2' | |
|
3 | 5 | print(os.getcwd()) |
|
4 | 6 | import sys |
|
5 | 7 | from PySide2.QtWidgets import QApplication, QMainWindow, QDockWidget |
|
6 | 8 | from PySide2.QtCore import QSize, Qt |
|
7 | 9 | from PySide2 import QtGui |
|
8 | import os | |
|
9 | 10 | sys.path.append(os.getcwd()) |
|
10 | 11 | from SciQLopBindings import SqpApplication, MainWindow, init_resources, load_plugins, SqpApplication_ctor |
|
11 | 12 | from qtconsole.rich_ipython_widget import RichJupyterWidget |
@@ -3,7 +3,7 qmake = find_program('qmake-qt5','qmake') | |||
|
3 | 3 | |
|
4 | 4 | pymod = import('python') |
|
5 | 5 | python3 = pymod.find_installation('python3', modules:['PySide2','shiboken2', 'shiboken2_generator', 'numpy']) |
|
6 | python3_dep = python3.dependency() | |
|
6 | python3_dep = python3.dependency(embed:true) | |
|
7 | 7 | numpy_inc = run_command(python3, '-c', 'import numpy;print(numpy.get_include())').stdout().strip('\n') |
|
8 | 8 | |
|
9 | 9 | qt5_modules = ['QtCore','QtGui','QtWidgets'] |
@@ -47,4 +47,4 sciqlop_bindings = python3.extension_module('SciQLopBindings',sciqlop_bindings_s | |||
|
47 | 47 | |
|
48 | 48 | configure_file(input:'main.py', output:'main.py', copy:true) |
|
49 | 49 | |
|
50 |
executable('sciqlop', 'main.cpp', dependencies :python3 |
|
|
50 | executable('sciqlop', 'main.cpp', dependencies :python3_dep) |
General Comments 0
You need to be logged in to leave comments.
Login now