Hi,

I assume you're still trying to use the setup.py route, and not the cmake one?

shiboken2 binary is not needed at runtime, just while building, or for 
end-users that want to create their own bindings.

support folder is needed for runtime.

To try and make the --root option work for you, i'd suggest invoking setup.py 
multiple times manually, for each project respectively.
So:

setup.py build  --internal-build-type=shiboken2 --reuse-build .....
setup.py install --root .... --internal-build-type=shiboken2 --reuse-build .....

setup.py build  --internal-build-type=shiboken2-generator --reuse-build ....
setup.py install --root .... --internal-build-type=shiboken2-generator 
--reuse-build ....

setup.py build --internal-build-type=pyside2 --reuse-build .........
setup.py install --root .... --internal-build-type=pyside2 --reuse-build 
........

On 23. Mar 2019, at 14:43, Richard Shaw 
<[email protected]<mailto:[email protected]>> wrote:

I'm working on packaging PySide2 for Fedora as a dependency for the latest 
release of the FreeCAD project. I admit I have no experience using the tools 
themselves directly which is why I'm reaching out here for help.

The current state (or saga rather) of the packages can be seen here:

https://bugzilla.redhat.com/show_bug.cgi?id=1634658

and here:

https://bugreports.qt.io/browse/PYSIDE-970

Basically I need to be able to use the --root option during install because all 
packages are built in packaged using a buildroot as a normal user (not root).

Other issues are that I'm not exactly sure how to separate the installed files 
between what is needed when you're building a package, and what is needed only 
during runtime (outside of the main PySide2 package).

Is the shiboken2 binary the only consumer of its respective python module? Or 
is it also needed during runtime?

Also, the headers and examples pretty obviously go in the -devel package, but 
what about the "support" directory?

Thanks,
Richard
_______________________________________________
PySide mailing list
[email protected]<mailto:[email protected]>
https://lists.qt-project.org/listinfo/pyside

_______________________________________________
PySide mailing list
[email protected]
https://lists.qt-project.org/listinfo/pyside

Reply via email to