python-utils-r1.eclass: python_moduleinto, clarify relative path use
authorMichał Górny <mgorny@gentoo.org>
Wed, 10 May 2017 13:28:41 +0000 (15:28 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 16 May 2017 17:11:30 +0000 (19:11 +0200)
Clearly indicate that python_moduleinto can be safely called outside
of the environment with Python interpreter established, and that
a single call can set the correct relative path for multiple different
implementations.

eclass/python-utils-r1.eclass

index c46feb08449b0b2035de026e664b231f8aa11b43..c594cb46b5f344187dae8925d4eacf26c2ab23df 100644 (file)
@@ -815,6 +815,12 @@ python_newscript() {
 # When not set explicitly, the modules are installed to the top
 # site-packages directory.
 #
+# In the relative case, the exact path is determined directly
+# by each python_doscript/python_newscript function. Therefore,
+# python_moduleinto can be safely called before establishing the Python
+# interpreter and/or a single call can be used to set the path correctly
+# for multiple implementations, as can be seen in the following example.
+#
 # Example:
 # @CODE
 # src_install() {