[PySide] pyside build using pyenv-installed local Python fails, using system-installed Shiboken2 config/cmake file ?

PGNet Dev pgnet.dev at gmail.com
Wed Feb 26 18:57:40 CET 2020

On 2/26/20 9:23 AM, PGNet Dev wrote:
> what build config change is required to point the build at using its OWN Shiboken2Config ?

explicitly spec'ing the current build's shiboken2 cmake dir path, adding

	python setup.py install \
	 --build-type=all \
	 --qmake=/usr/bin/qmake-qt5 \
	 --parallel=8 \
	 --build-tests \
+	 --shiboken-config-dir=/usr/local/src/pyside-setup/pyside3_install/py3.8-qt5.14.1-64bit-release/lib/cmake/Shiboken2-5.14.1/

_does_ appear to *workaround* the find-shiboken problem,

	-- Detecting CXX compile features - done
	-- Shiboken2Config: Using default python: .cpython-38-x86_64-linux-gnu
	-- Found PythonInterp: /usr/local/pyenv/versions/3.8-dev/bin/python (found suitable version "3.8.2", minimum required is "3")
	-- Found PythonLibs: /usr/local/pyenv/versions/3.8-dev/lib/libpython3.8.so (found suitable version "3.8.2+", minimum required is "3")
	-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/local/pyenv/versions/3.8-dev/include/python3.8'
	-- SHIBOKEN_PYTHON_LIBRARIES computed to value: ''
	-- libshiboken built for Release

but then similarly fails for pyside cmake, ignoring

	find . | grep PySide2Config.cmake

instead finding/using system-installed file

	CMake Error at /usr/lib64/cmake/PySide2-5.14.0/PySide2Config.cmake:5 (include):
	  include could not find load file:

	Call Stack (most recent call first):
	  CMakeLists.txt:11 (find_package)

	-- Configuring incomplete, errors occurred!
	See also "/usr/local/src/pyside-setup/pyside3_build/py3.8-qt5.14.1-64bit-release/pyside2-tools/CMakeFiles/CMakeOutput.log".
	error: Error configuring pyside2-tools
	Traceback (most recent call last):
	  File "setup.py", line 296, in <module>
	  File "/usr/local/src/pyside-setup/build_scripts/setup_runner.py", line 158, in run_setup
	    raise RuntimeError(msg)
	setup.py invocation failed with exit code: 1.

	setup.py invocation was: /usr/local/pyenv/versions/3.8-dev/bin/python setup.py install --build-type=all --qmake=/usr/bin/qmake-qt5 --parallel=8 --build-tests --shiboken-config-dir=/usr/local/src/pyside-setup/pyside3_install/py3.8-qt5.14.1-64bit-release/lib/cmake/Shiboken2-5.14.1/ --internal-build-type=pyside2

there doesn't appear to be a relevant, equivalent setyp.py option to


poking to see what to do about this^ one.

in any case, these workarounds are just that ... workarounds.

the cmake setup configs need some TLC

More information about the PySide mailing list