<table><tr><td style="">bruns updated this revision to Diff 42631.<br />bruns retitled this revision from "Bindings: Query the install directory from python" to "Bindings: Support using sys paths for python install directory".<br />bruns edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-3u77kuhfxoebnb7/">(Show Details)</a><br />bruns edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-kckkqgjecr4shu3/">(Show Details)</a><br />bruns added a comment.
</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><div><p>Update summary/test plan</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>generated for.<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> These directories can be queried using pythons<br />
distutils.sysconfig.<br />
<br />
When determining the install directory, it mimics the logic from<br />
KDE_INSTALL_USE_QT_SYS_PATHS. When the python PREFIX is the same<br />
as CMAKE_INSTALL_PREFIX, it defaults to using the path from</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">The directories can be queried using pythons distutils.sysconfig.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">distutils.sysconfig, otherwise it keeps the current scheme, installing</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">In the unlikely case this does not match expectations, the directory can</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">below CMAKE_INSTALL_PREFIX.<br />
<br />
The default behaviour can be changed by setting KDE_INSTALL_PYTHON{2,3}DIR</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">be overridden using -DGPB</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">or by switching KDE_INSTALL_USE</span>_PYTHON{2,3}_S<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ITEARCH="<dir>"</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">YS_PATH ON or OFF</span>.</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>where dist-packages instead of site-packages is used (untested).<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
other test cases:<br />
Keep current scheme: `cmake -DCMAKE_INSTALL_PREFIX=/opt ..`<br />
Default to sys path: `cmake -DCMAKE_INSTALL_PREFIX=/usr ..`<br />
Force sys path: `cmake -DCMAKE_INSTALL_PREFIX=/opt -DKDE_INSTALL_USE_PYTHON3_SYS_PATHS=ON ..`</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D15070?vs=42629&id=42631">https://phabricator.kde.org/D15070?vs=42629&id=42631</a></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>cgiboudeaux, bcooksley, kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns<br /></div>