Skip to content

Commit 3021f26

Browse files
committed
Switch to Python 3.9
1 parent 0637674 commit 3021f26

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

3rdparty/pyotherside.pri

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11

22
# Python
3+
PY_VERSION="39"
4+
PY_LIB_SUFFIX="3.9"
5+
36
win32* {
4-
QMAKE_LIBS += -LC:\Python37-x64\libs -lpython37
5-
INCLUDEPATH += C:\Python37-x64\include\
7+
QMAKE_LIBS += -LC:\Python$${PY_VERSION}-x64\libs -lpython$${PY_VERSION}
8+
INCLUDEPATH += C:\Python$${PY_VERSION}-x64\include\
69
} else {
710
unix:macx {
811
exists($$PWD/python-3) {
912
message("Using Python from 3rdparty dir")
10-
LIBS += $$PWD/python-3/lib/libpython3.7m.dylib
11-
INCLUDEPATH += $$PWD/python-3/include/python3.7m
13+
LIBS += $$PWD/python-3/lib/libpython$${PY_LIB_SUFFIX}.dylib
14+
INCLUDEPATH += $$PWD/python-3/include/python$${PY_LIB_SUFFIX}
1215

1316
#deployment
14-
PY_DATA_FILES.files = $$PWD/python-3/lib/libpython3.7m.dylib
17+
PY_DATA_FILES.files = $$PWD/python-3/lib/libpython$${PY_LIB_SUFFIX}.dylib
1518
PY_DATA_FILES.path = Contents/Frameworks
1619
QMAKE_BUNDLE_DATA += PY_DATA_FILES
1720

1821
} else {
1922
PYTHON_CONFIG = /usr/local/bin/python3-config
20-
QMAKE_LIBS += $$system($$PYTHON_CONFIG --ldflags --libs)
23+
QMAKE_LIBS += $$system($$PYTHON_CONFIG --ldflags --libs --embed)
2124
QMAKE_CXXFLAGS += $$system($$PYTHON_CONFIG --includes)
2225
}
2326
} else {
2427
PYTHON_CONFIG = python3-config
2528

2629
PYTHON_VERSION = $$str_member($$system(python3 --version), 7, 11)
27-
2830
message("Python version $$PYTHON_VERSION")
2931

30-
versionAtLeast(PYTHON_VERSION, "3.8.0") {
31-
message("Python >=3.8 needs --embed flag")
32+
versionAtLeast(PYTHON_VERSION, "3.8.0") {
3233
QMAKE_LIBS += $$system($$PYTHON_CONFIG --ldflags --libs --embed)
3334
} else {
3435
QMAKE_LIBS += $$system($$PYTHON_CONFIG --ldflags --libs)

docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ cd 3rdparty/lz4/build/cmake
6969
cmake -DLZ4_BUNDLED_MODE=ON .
7070
make
7171
```
72-
6. Install Python 3.7 amd64 to `C:\Python37-x64`.
72+
6. Install Python 3.9 amd64 to `C:\Python39-x64`.
7373
7. Install Python requirements `pip3 install -r src/py/requirements.txt`.
7474
8. Open `./src/rdm.pro` in **Qt Creator**. Choose the `Desktop Qt 5.15.x MSVC2019 64bit > Release` build profile.
7575
9. Run build. (Just hit `Ctrl-B`)

0 commit comments

Comments
 (0)