Changeset View
Changeset View
Standalone View
Standalone View
en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
Show First 20 Lines • Show All 3,621 Lines • ▼ Show 20 Lines | <row> | ||||
<entry><varname>USE_PYTHON=distutils</varname></entry> | <entry><varname>USE_PYTHON=distutils</varname></entry> | ||||
<entry>Use Python distutils for configuring, compiling, | <entry>Use Python distutils for configuring, compiling, | ||||
and installing. This is required when the port comes | and installing. This is required when the port comes | ||||
with <filename>setup.py</filename>. This overrides | with <filename>setup.py</filename>. This overrides | ||||
the <buildtarget>do-build</buildtarget> and | the <buildtarget>do-build</buildtarget> and | ||||
<buildtarget>do-install</buildtarget> targets and may | <buildtarget>do-install</buildtarget> targets and may | ||||
also override <buildtarget>do-configure</buildtarget> | also override <buildtarget>do-configure</buildtarget> | ||||
if <varname>GNU_CONFIGURE</varname> is not | if <varname>GNU_CONFIGURE</varname> is not | ||||
defined.</entry> | defined. Additionally, it implies | ||||
wblockUnsubmitted Not Done Inline Actionswblock: ```defined. It also implies``` | |||||
<literal>USE_PYTHON=flavors</literal>.</entry> | |||||
Done Inline ActionsMaybe having a link to the flavors chapter here as well is a good idea? bcr: Maybe having a link to the flavors chapter here as well is a good idea? | |||||
Done Inline ActionsMmm, I don't know, there is already a link in the USE_PYTHON=flavors entry. mat: Mmm, I don't know, there is already a link in the `USE_PYTHON=flavors` entry. | |||||
Done Inline ActionsAh, OK. That's fine then. bcr: Ah, OK. That's fine then. | |||||
</row> | </row> | ||||
<row> | <row> | ||||
<entry><varname>USE_PYTHON=autoplist</varname></entry> | <entry><varname>USE_PYTHON=autoplist</varname></entry> | ||||
<entry>Create the packaging list automatically. This also | <entry>Create the packaging list automatically. This also | ||||
requires <literal>USE_PYTHON=distutils</literal> to be | requires <literal>USE_PYTHON=distutils</literal> to be | ||||
set.</entry> | set.</entry> | ||||
</row> | </row> | ||||
<row> | <row> | ||||
<entry><varname>USE_PYTHON=concurrent</varname></entry> | <entry><varname>USE_PYTHON=concurrent</varname></entry> | ||||
<entry>The port will use an unique prefix, typically | <entry>The port will use an unique prefix, typically | ||||
<literal>PYTHON_PKGNAMEPREFIX</literal> for certain | <literal>PYTHON_PKGNAMEPREFIX</literal> for certain | ||||
directories, such as <literal>EXAMPLESDIR</literal> and | directories, such as <literal>EXAMPLESDIR</literal> and | ||||
<literal>DOCSDIR</literal> and also will append a | <literal>DOCSDIR</literal> and also will append a | ||||
suffix, the python version from | suffix, the python version from | ||||
<literal>PYTHON_VER</literal>, to binaries and scripts | <literal>PYTHON_VER</literal>, to binaries and scripts | ||||
to be installed. This allows ports to be installed for | to be installed. This allows ports to be installed for | ||||
different Python versions at the same time, which | different Python versions at the same time, which | ||||
otherwise would install conflicting files.</entry> | otherwise would install conflicting files.</entry> | ||||
</row> | </row> | ||||
<row> | <row> | ||||
<entry><literal>USE_PYTHON=flavors</literal></entry> | |||||
<entry>The port does not use distutils but still supports | |||||
multiple Python versions. <varname>FLAVORS</varname> | |||||
will be set to the supported Python versions. See <xref | |||||
linkend="flavors-auto-python"/> for more | |||||
information.</entry> | |||||
</row> | |||||
<row> | |||||
<entry><literal>USE_PYTHON=optsuffix</literal></entry> | |||||
<entry>If the current Python version is not the default | |||||
one, the port will have gain | |||||
adamwUnsubmitted Done Inline Actionss/one/version/ adamw: s/one/version/ | |||||
adamwUnsubmitted Done Inline ActionsAnd s/have//. adamw: And s/have//. | |||||
<literal>PKGNAMESUFFIX=${PYTHON_PKGNAMESUFFIX}</literal>. | |||||
Only useful with flavors.</entry> | |||||
wblockUnsubmitted Not Done Inline Actionss/Only/This is only/ wblock: s/Only/This is only/ | |||||
</row> | |||||
<row> | |||||
<entry><varname>PYTHON_PKGNAMEPREFIX</varname></entry> | <entry><varname>PYTHON_PKGNAMEPREFIX</varname></entry> | ||||
<entry>Used as a <varname>PKGNAMEPREFIX</varname> to | <entry>Used as a <varname>PKGNAMEPREFIX</varname> to | ||||
distinguish packages for different Python versions. | distinguish packages for different Python versions. | ||||
Example: <literal>py27-</literal></entry> | Example: <literal>py27-</literal></entry> | ||||
</row> | </row> | ||||
<row> | <row> | ||||
<entry><varname>PYTHON_SITELIBDIR</varname></entry> | <entry><varname>PYTHON_SITELIBDIR</varname></entry> | ||||
Show All 14 Lines | <row> | ||||
<literal>lib/python%%PYTHON_VERSION%%/site-packages</literal></entry> | <literal>lib/python%%PYTHON_VERSION%%/site-packages</literal></entry> | ||||
</row> | </row> | ||||
<row> | <row> | ||||
<entry><varname>PYTHON_CMD</varname></entry> | <entry><varname>PYTHON_CMD</varname></entry> | ||||
<entry>Python interpreter command line, including | <entry>Python interpreter command line, including | ||||
version number.</entry> | version number.</entry> | ||||
</row> | </row> | ||||
</tbody> | |||||
</tgroup> | |||||
</table> | |||||
<table frame="none" xml:id="using-python-variables-helpers"> | |||||
<title>Python Module Dependency Helpers</title> | |||||
<tgroup cols="2"> | |||||
<tbody> | |||||
<row> | <row> | ||||
<entry><varname>PYNUMERIC</varname></entry> | <entry><varname>PYNUMERIC</varname></entry> | ||||
<entry>Dependency line for numeric extension.</entry> | <entry>Dependency line for numeric extension.</entry> | ||||
</row> | </row> | ||||
<row> | <row> | ||||
<entry><varname>PYNUMPY</varname></entry> | <entry><varname>PYNUMPY</varname></entry> | ||||
<entry>Dependency line for the new numeric extension, | <entry>Dependency line for the new numeric extension, | ||||
numpy. (PYNUMERIC is deprecated by upstream | numpy. (PYNUMERIC is deprecated by upstream | ||||
vendor).</entry> | vendor).</entry> | ||||
</row> | </row> | ||||
<row> | <row> | ||||
<entry><varname>PYXML</varname></entry> | <entry><varname>PYXML</varname></entry> | ||||
<entry>Dependency line for XML extension (not needed for | <entry>Dependency line for XML extension (not needed for | ||||
Python 2.0 and higher as it is also in base | Python 2.0 and higher as it is also in base | ||||
distribution).</entry> | distribution).</entry> | ||||
</row> | |||||
<row> | |||||
<entry><varname>PY_ENUM34</varname></entry> | |||||
<entry>Conditionnal dependency on | |||||
wblockUnsubmitted Not Done Inline ActionsTypo: s/conditionnal/conditional/ wblock: Typo: s/conditionnal/conditional/ | |||||
<package>devel/py-enum34</package> depending on the | |||||
Python version.</entry> | |||||
</row> | |||||
<row> | |||||
<entry><varname>PY_ENUM_COMPAT</varname></entry> | |||||
<entry>Conditionnal dependency on | |||||
wblockUnsubmitted Not Done Inline ActionsTypo: s/conditionnal/conditional/ wblock: Typo: s/conditionnal/conditional/ | |||||
<package>devel/py-enum-compat</package> depending on the | |||||
Python version.</entry> | |||||
</row> | |||||
<row> | |||||
<entry><varname>PY_PATHLIB</varname></entry> | |||||
<entry>Conditionnal dependency on | |||||
wblockUnsubmitted Not Done Inline ActionsTypo: s/conditionnal/conditional/ wblock: Typo: s/conditionnal/conditional/ | |||||
<package>devel/py-pathlib</package> depending on the | |||||
Python version.</entry> | |||||
</row> | |||||
<row> | |||||
<entry><varname>PY_IPADDRESS</varname></entry> | |||||
<entry>Conditionnal dependency on | |||||
wblockUnsubmitted Not Done Inline ActionsTypo: s/conditionnal/conditional/ wblock: Typo: s/conditionnal/conditional/ | |||||
<package>net/py-ipaddress</package> depending on the | |||||
Python version.</entry> | |||||
</row> | |||||
<row> | |||||
<entry><varname>PY_FUTURES</varname></entry> | |||||
<entry>Conditionnal dependency on | |||||
wblockUnsubmitted Not Done Inline ActionsTypo: s/conditionnal/conditional/ wblock: Typo: s/conditionnal/conditional/ | |||||
<package>devel/py-futures</package> depending on the | |||||
Python version.</entry> | |||||
</row> | </row> | ||||
</tbody> | </tbody> | ||||
</tgroup> | </tgroup> | ||||
</table> | </table> | ||||
<para>A complete list of available variables can be found in | <para>A complete list of available variables can be found in | ||||
<filename>/usr/ports/Mk/Uses/python.mk</filename>.</para> | <filename>/usr/ports/Mk/Uses/python.mk</filename>.</para> | ||||
▲ Show 20 Lines • Show All 1,738 Lines • Show Last 20 Lines |