<table><tr><td style="">bruns created this revision.<br />bruns added a reviewer: Frameworks.<br />Herald added projects: Frameworks, Build System.<br />Herald added subscribers: kde-buildsystem, kde-frameworks-devel.<br />bruns requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15070">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The correct install directory is distro and arch specific, and should<br />
match the configuration of the python installation the binding is<br />
generated for.<br />
The directories can be queried using pythons distutils.sysconfig.<br />
In the unlikely case this does not match expectations, the directory can<br />
be overridden using -DGPB_PYTHON{2,3}_SITEARCH="<dir>".</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>On a distro where sitearch is not below /usr/lib/pythonM.m/, but<br />
/usr/lib64/pythonM.m/ (e.g. RH, SUSE 64bit), try to do:</p>

<p>cmake ..; make; install</p>

<p>Without the patch, the binding are installed into the wrong directory,<br />
afterwards the correct path is used.</p>

<p>This should also yield the correct path on Debian and derivatives,<br />
where dist-packages instead of site-packages is used (untested).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>BRANCH</strong><div><div>python3_support</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15070">https://phabricator.kde.org/D15070</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>find-modules/FindPythonModuleGeneration.cmake</div></div></div><br /><div><strong>To: </strong>bruns, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns<br /></div>