<table><tr><td style="">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>If you can change PYTHONPATH for execution, why can't you specify GPB_PYTHONx_SITEARCH?</p>

<p>I would expect if I do not specify a path manually, it should be installed in the default location. This btw. <strong>does</strong> honor PREFIX/EXEC_PREFIX, see <a href="https://docs.python.org/3/distutils/apiref.html#module-distutils.sysconfig" class="remarkup-link" target="_blank" rel="noreferrer">https://docs.python.org/3/distutils/apiref.html#module-distutils.sysconfig</a><br />
Currently the system default location is not used, and it is not even possible to force the correct location in general (mixture of variables and hardcoded parts).</p>

<p>The default location is also correctly determined if you use e.g. virtualenv.</p>

<p>The canonical path for python user installations is <tt style="background: #ebebeb; font-size: 13px;">~/.local/lib/python<major>.<minor>/site-packages/</tt> which would imply a CMAKE_INSTALL_PREFIX of <tt style="background: #ebebeb; font-size: 13px;">~/.local/</tt>. See also PEP370, <a href="https://www.python.org/dev/peps/pep-0370/" class="remarkup-link" target="_blank" rel="noreferrer">https://www.python.org/dev/peps/pep-0370/</a>.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</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>To: </strong>bruns, Frameworks<br /><strong>Cc: </strong>bcooksley, kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns<br /></div>