mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 08:59:55 +00:00
PYTHON3_VERSION set from PY_MINOR_VERSION
.. so we don't have to remember !
This commit is contained in:
@@ -28,15 +28,16 @@
|
||||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
|
||||
#if PYTHON3_VERSION < 5
|
||||
#error "PYTHON3_VERSION must specify the python version for this build eg 6"
|
||||
#endif
|
||||
|
||||
#ifdef slots // clashes with python headers
|
||||
#undef slots
|
||||
#endif
|
||||
#include <Python.h>
|
||||
|
||||
// we only really support Python 3, so lets only work on that basis
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
#define PYTHON3_VERSION PY_MINOR_VERSION
|
||||
#endif
|
||||
|
||||
// global instance of embedded python
|
||||
PythonEmbed *python;
|
||||
PyThreadState *mainThreadState;
|
||||
|
||||
Reference in New Issue
Block a user