<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 25. Mar 2019, at 14:18, Richard Shaw <<a href="mailto:hobbes1069@gmail.com" class="">hobbes1069@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">On Mon, Mar 25, 2019 at 4:46 AM Alexandru Croitor <<a href="mailto:alexandru.croitor@qt.io" class="">alexandru.croitor@qt.io</a>> wrote:<br class="">
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">Hi,
<div class=""><br class="">
</div>
<div class="">I assume you're still trying to use the setup.py route, and not the cmake one?</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">I made a copy my RPM spec file and started changing things over to CMake... Maybe I missed it but I see cmake and pkgconf config files installed for shiboken that I don't remember seeing using the setuptools method...</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Yes, the setuptools method does not install the cmake files, nor the pkg config files.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_quote">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class="">shiboken2 binary is not needed at runtime, just while building, or for end-users that want to create their own bindings.<br class="">
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Ok maybe I need to restate... The python files installed: Are they only used by the shiboken binary? Or are there other consumers? The reason this is important is that I can either bundle the shiboken2 binary with the python files in one package
 "shiboken2" or if there are other consumers of the python library/module I need to package it in "python3-shiboken2".</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div><br class="">
</div>
<div>Which python files?</div>
<div><br class="">
</div>
<div>The shiboken binary is part of the shiboken2_generator package. Here is the setuptools installed contents on macOS (replace dylib with .so)</div>
<div>
<div><br class="">
</div>
<div>Qt                                                 </div>
<div>_git_shiboken_generator_version.py </div>
<div>libclang.dylib                     </div>
<div>shiboken2</div>
<div>__init__.py                        </div>
<div>_config.py                         </div>
<div>include                            </div>
<div>scripts</div>
<div><br class="">
</div>
<div>You probably want to include all of the above as package number one. Except for libclang, which I guess would be handled by your RPATH distro mechanisms. You would use this while building your own bindings. So it would be a -devel package I suppose.</div>
<div><br class="">
</div>
<div>Here is the contents for the shiboken2 package, which does not contain an executable, but only python files and shared libraries.</div>
<div>
<div>__init__.py                     </div>
<div>_config.py                      </div>
<div>docs                           </div>
<div>libshiboken2.abi3.5.12.dylib               </div>
<div>_git_shiboken_module_version.py </div>
<div>files.dir                       </div>
<div>shiboken2.abi3.so</div>
<div><br class="">
</div>
<div>This would be a second package, different from the first one. All the files from this package are needed at runtime (by FreeCAD), except for docs.</div>
<div><br class="">
</div>
<div>Any custom built bindings would depend on this package. The PySide2 package also depends on this one.</div>
<div><br class="">
</div>
<div><br class="">
</div>
</div>
</div>
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_quote">
<div class=""><br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class=""></div>
<div class="">support folder is needed for runtime.<br class="">
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">For shiboken2, correct? So it would be part of the -devel package. What I mean by "runtime" is other applications running (not building) such as FreeCAD.</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Yes, for shiboken2.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_quote">
<div class=""><br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class=""></div>
<div class="">To try and make the --root option work for you, i'd suggest invoking setup.py multiple times manually, for each project respectively. <br class="">
</div>
<div class="">So:</div>
<div class=""><br class="">
</div>
<div class="">setup.py build  --internal-build-type=shiboken2 --reuse-build .....</div>
<div class="">setup.py install --root .... --internal-build-type=shiboken2 --reuse-build .....</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">setup.py build  --internal-build-type=shiboken2-generator --reuse-build ....</div>
<div class="">setup.py install --root .... --internal-build-type=shiboken2-generator --reuse-build ....</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">setup.py build --internal-build-type=pyside2 --reuse-build .........</div>
<div class="">setup.py install --root .... --internal-build-type=pyside2 --reuse-build ........</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">I may try that but right now I'm thinking the cmake option may be easiest. </div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Perhaps it's the easier approach, given that Arch uses that approach, and I think some ubuntu ppa did at some point as well.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_quote">
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Richard </div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>