[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:23:42 CET 2020


	lsb_release -rd
		Description:    openSUSE Leap 15.1
		Release:        15.1


	qmake-qt5 -v
		QMake version 3.1
		Using Qt version 5.14.1 in /usr/lib64

and with pyenv-installed local python 3.8-dev, set as global/default,

	pyenv versions
		* 3.8-dev (set by /usr/local/pyenv/version)

	pyenv global

	which python
	python -V
		Python 3.8.2+

checkout of Qt-version-matched pyside-setup

	cd pyside-setup
	git branch --track 5.14.1 origin/5.14.1
	git checkout 5.14.1
	git log | head
		commit 8a12ff8811aeeb6def165264f30cdc9de0fd9174
		Author: Simo Fält <simo.falt at qt.io>
		Date:   Wed Jan 29 13:42:18 2020 +0200

		    Cleanup version string for 5.14.1 release

		    Change-Id: I663e75d6a10c92aea9798e174e07dead45a21a59
		    Reviewed-by: Friedemann Kleint <Friedemann.Kleint at qt.io>

		commit ba46aa1ffb8f9172e4473bd38e5018c1d1611a78


	python setup.py install \
	 --build-type=all \
	 --qmake=/usr/bin/qmake-qt5 \
	 --parallel=8 \

fails, using the system-installed shiboken_helpers.cmake, NOT the currently building Shiboken2Config,
and NOT finding the pyenv-installed python,

	Running process: /usr/local/pyenv/versions/3.8-dev/bin/python setup.py install --build-type=all --qmake=/usr/bin/qmake-qt5 --parallel=8 --build-tests --internal-build-type=shiboken2

	running install
	running build
	Initializing submodules for PySide2 version: 5.14.1
	All submodules present.
	Running process in directory /usr/local/src/pyside-setup: command git submodule update
	Python architecture is 64bit

	-- Detecting CXX compiler ABI info
	-- Detecting CXX compiler ABI info - done
	-- Detecting CXX compile features
	-- Detecting CXX compile features - done
	-- Shiboken2Config: Using default python: .cpython-36m-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")
	CMake Error at /usr/lib64/cmake/Shiboken2-5.14.0/shiboken_helpers.cmake:468 (message):
	  The detected Python minor version is not compatible with the Python minor
	  version which was used when Shiboken was built.  Consider building shiboken
	  with FORCE_LIMITED_API set to '1', so that only the Python major version

	  Built with: '3.6' Detected: '3.8'
	Call Stack (most recent call first):
	  /usr/lib64/cmake/Shiboken2-5.14.0/Shiboken2Config.cpython-36m-x86_64-linux-gnu.cmake:45 (shiboken_check_if_built_and_target_python_are_compatible)
	  /usr/lib64/cmake/Shiboken2-5.14.0/Shiboken2Config.cmake:5 (include)
	  CMakeLists.txt:64 (find_package)

	-- Configuring incomplete, errors occurred!
	See also "/usr/local/src/pyside-setup/pyside3_build/py3.8-qt5.14.1-64bit-release/pyside2/CMakeFiles/CMakeOutput.log".
	error: Error configuring pyside2
	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 --internal-build-type=pyside2

what build config change is required to point the build at using its OWN Shiboken2Config ?

More information about the PySide mailing list