Qt for Python/GettingStarted/MacOS: Difference between revisions
(First version) |
m (CristianMaureiraFredes moved page PySide2 MacOS macOS to PySide2 MacOS) |
Revision as of 11:59, 29 January 2018
(page under construction)
Requirements
- Qt package from https://www.qt.io or a custom build of Qt (preferably Qt 5.9 or Qt 5.6)
- Python from https://www.python.org/downloads/ (Python 3.6 or Python 2.7)
- Xcode (macOS)
- CMake from https://cmake.org/download/ (>= 3.1)
- libclang (required for the 5.9 and dev branches) from download.qt.io (>= 3.9)
- LLVM
- virtualenv (optional but recommended)
- Python sphinx package for documentation (optional, pip install sphinx)
setup.py build script
Note: When doing local builds of Qt on macOS you will need to set either the DYLD_LIBRARY_PATH or DYLD_FRAMEWORK_PATH environment variables.
Development
Development happens in the 5.9 and dev branches of the pyside-setup repository.
The top level repository has the following submodules:
- sources/pyside2-tools: uic, rcc tools
Contributions follow the standard process.·
It is helpful to have debug binaries and/or symbols for Python available. On macOS you will need to build the Python interpreter with debug symbols by hand.
It is also recommended to use a Virtual Environment for testing to be able to always start from a clean base and avoid issues with write permissions in installations.
On macOS, the command
virtualenv -p /usr/bin/python3-dbg testenv
creates a Virtual Environment named testenv for debugging purposes.
Before building the first time, the module Sphinx should be installed into the virtual environment:
pip install sphinx