1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-02-05 08:08:23 +08:00
pyotherside/README

53 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2013-08-07 21:47:24 +02:00
PyOtherSide: Asynchronous Python 3 Bindings for Qt 5
====================================================
A Qt 5 QML Plugin that provides access to a Python 3 interpreter from QML.
2013-08-07 21:47:24 +02:00
Requirements:
Qt >= 5.1.0
2013-08-07 21:47:24 +02:00
Python >= 3.3.0
To build and install the QML plugin:
qmake
make
make install
To build against a specific Python version, use:
2013-08-07 21:47:24 +02:00
qmake PYTHON_CONFIG=python3.3-config
2013-08-07 21:47:24 +02:00
make
make install
2013-08-07 21:47:24 +02:00
To manually update the qmltypes file on x64 Linux (TODO: make this automated):
qmake
make
make INSTALL_ROOT=$(pwd)/tmp/
qmlplugindump io.thp.pyotherside 1.0 tmp/usr/lib/x86_64-linux-gnu/qt5/qml \
>src/pyotherside.qmltypes
To run the included unit tests after building, use:
2013-08-07 21:47:24 +02:00
./tests/tests
2013-08-07 21:47:24 +02:00
If you want to link PyOtherSide statically against Python 3, you can include
the Python Standard Library in PyOtherSide as Qt Resource and have it extracted
automatically on load, for this, zip up the Standard Library and place the .zip
file as "pythonlib.zip" into src/ before running qmake.
More information:
2013-08-07 21:47:24 +02:00
Project page: https://thp.io/2011/pyotherside/
Git repo: http://github.com/thp/pyotherside/
Bug tracker: https://github.com/thp/pyotherside/issues
Documentation: http://pyotherside.readthedocs.org/