Add some flesh to Using Python chapter
Glanced over by: alexbl
This commit is contained in:
parent
75131fca35
commit
c7e467a83f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=29451
1 changed files with 15 additions and 0 deletions
|
@ -5903,6 +5903,21 @@ _DOCSDIR= .
|
|||
<sect1 id="using-python">
|
||||
<title>Using Python</title>
|
||||
|
||||
<para>The Ports Collection supports parallel installation of multiple
|
||||
Python versions. Ports should make sure to use a correct
|
||||
<command>python</command> interpreter, according to the user-settable
|
||||
<makevar>PYTHON_VERSION</makevar> variable. Most prominently, this
|
||||
means replacing the path to <command>python</command> executable in
|
||||
scripts with the value of <makevar>PYTHON_CMD</makevar>
|
||||
variable.</para>
|
||||
|
||||
<para>Ports that install files under <makevar>PYTHON_SITELIBDIR</makevar>
|
||||
should use the <literal>pyXY-</literal> package name prefix, so their
|
||||
package name embeds the version of Python they are installed
|
||||
into.</para>
|
||||
|
||||
<programlisting>PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}</programlisting>
|
||||
|
||||
<table frame="none">
|
||||
<title>Most useful variables for ports that use Python</title>
|
||||
|
||||
|
|
Loading…
Reference in a new issue