diff options
author | wiz <wiz@pkgsrc.org> | 2016-01-12 12:04:32 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-01-12 12:04:32 +0000 |
commit | fc226504df7b9588f962db113c8ee9470586e336 (patch) | |
tree | ea6a7b4d7171a58bd3256c96d51da3098315dd1a | |
parent | 0c511298358baf283049142a8ea459756ff2e00d (diff) | |
download | pkgsrc-fc226504df7b9588f962db113c8ee9470586e336.tar.gz |
regen
-rw-r--r-- | doc/pkgsrc.html | 59 | ||||
-rw-r--r-- | doc/pkgsrc.txt | 24 |
2 files changed, 42 insertions, 41 deletions
diff --git a/doc/pkgsrc.html b/doc/pkgsrc.html index 791d2c80e0b..10c2c4fe783 100644 --- a/doc/pkgsrc.html +++ b/doc/pkgsrc.html @@ -3685,9 +3685,22 @@ that are not supported, e.g. PYTHON_VERSIONS_INCOMPATIBLE= 27 </pre> <p> -If the packaged software is a Python module, include -<span class="quote">“<span class="quote"><code class="filename">../../lang/python/extension.mk</code></span>”</span>. -In this case, the package directory should be called +If the packaged software is a Python module, include one of +<code class="filename">../../lang/python/egg.mk</code>, +<code class="filename">../../lang/python/distutils.mk</code>, or +<code class="filename">../../lang/python/extension.mk</code>.</p> +<p>Most Python packages use either <span class="quote">“<span class="quote">distutils</span>”</span> or +easy-setup/setuptools (<span class="quote">“<span class="quote">eggs</span>”</span>). +if the packaged software is using setuptools, you only need +to include <span class="quote">“<span class="quote"><code class="filename">../../lang/python/egg.mk</code></span>”</span>. +Otherwise, if the software uses <span class="quote">“<span class="quote">distutils</span>”</span>, include +<span class="quote">“<span class="quote"><code class="filename">../../lang/python/distutils.mk</code></span>”</span>. +so pkgsrc will use this framework. +<span class="quote">“<span class="quote">distutils</span>”</span> uses a script called <code class="filename">setup.py</code>, +if the <span class="quote">“<span class="quote">distutils</span>”</span> driver is not called +<code class="filename">setup.py</code>, set the <code class="varname">PYSETUP</code> variable +to the name of the script.</p> +<p>Either way, the package directory should be called <span class="quote">“<span class="quote">py-software</span>”</span> and <code class="varname">PKGNAME</code> should be set to <span class="quote">“<span class="quote">${PYPKGPREFIX}-${DISTNAME}</span>”</span>, e.g. </p> @@ -3705,18 +3718,6 @@ For example: <pre class="programlisting"> REPLACE_PYTHON= *.py </pre> -<p>Most Python packages use either <span class="quote">“<span class="quote">distutils</span>”</span> or -easy-setup (<span class="quote">“<span class="quote">eggs</span>”</span>). -If the software uses <span class="quote">“<span class="quote">distutils</span>”</span>, include -<span class="quote">“<span class="quote"><code class="filename">../../lang/python/distutils.mk</code></span>”</span>. -so pkgsrc will use this framework. -<span class="quote">“<span class="quote">distutils</span>”</span> uses a script called <code class="filename">setup.py</code>, -if the <span class="quote">“<span class="quote">distutils</span>”</span> driver is not called -<code class="filename">setup.py</code>, set the <code class="varname">PYSETUP</code> variable -to the name of the script.</p> -<p>Otherwise, if the packaged software is egg-aware, you only need -to include -<span class="quote">“<span class="quote"><code class="filename">../../lang/python/egg.mk</code></span>”</span>.</p> <p>Some Python modules have separate distributions for Python-2.x and Python-3.x support. In pkgsrc this is handled by the <code class="filename">versioned_dependencies.mk</code> file. Set @@ -7353,7 +7354,7 @@ TOOLS_PLATFORM.true?= true # shell builtin <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="tools.questions"></a>18.4. Questions regarding the tools</h2></div></div></div> <div class="qandaset"> -<a name="idm80761616"></a><dl> +<a name="idm76299152"></a><dl> <dt>18.4.1. <a href="#tools.new">How do I add a new tool?</a> </dt> <dt>18.4.2. <a href="#tools.listall">How do I get a list of all available @@ -7372,7 +7373,7 @@ TOOLS_PLATFORM.true?= true # shell builtin <tbody> <tr class="question"> <td align="left" valign="top"> -<a name="tools.new"></a><a name="idm80761232"></a><p><b>18.4.1.</b></p> +<a name="tools.new"></a><a name="idm76298768"></a><p><b>18.4.1.</b></p> </td> <td align="left" valign="top"><p>How do I add a new tool?</p></td> </tr> @@ -7382,7 +7383,7 @@ TOOLS_PLATFORM.true?= true # shell builtin </tr> <tr class="question"> <td align="left" valign="top"> -<a name="tools.listall"></a><a name="idm80760208"></a><p><b>18.4.2.</b></p> +<a name="tools.listall"></a><a name="idm76297744"></a><p><b>18.4.2.</b></p> </td> <td align="left" valign="top"><p>How do I get a list of all available tools?</p></td> @@ -7393,7 +7394,7 @@ TOOLS_PLATFORM.true?= true # shell builtin </tr> <tr class="question"> <td align="left" valign="top"> -<a name="tools.used"></a><a name="idm80759184"></a><p><b>18.4.3.</b></p> +<a name="tools.used"></a><a name="idm76296720"></a><p><b>18.4.3.</b></p> </td> <td align="left" valign="top"><p>How can I get a list of all the tools that a package is using while being built? I want to know whether it @@ -9554,7 +9555,7 @@ place.</p></li> and if you still don't have the answer, ask on the <code class="literal">pkgsrc-users</code> mailing list.</p> <div class="qandaset"> -<a name="idm80160784"></a><dl> +<a name="idm77828240"></a><dl> <dt>22.1. <a href="#devfaq.makeflags">What is the difference between MAKEFLAGS, .MAKEFLAGS and MAKE_FLAGS?</a> @@ -9599,7 +9600,7 @@ do?</a> <tbody> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.makeflags"></a><a name="idm80160400"></a><p><b>22.1.</b></p> +<a name="devfaq.makeflags"></a><a name="idm77827856"></a><p><b>22.1.</b></p> </td> <td align="left" valign="top"><p>What is the difference between <code class="varname">MAKEFLAGS</code>, <code class="varname">.MAKEFLAGS</code> and @@ -9615,7 +9616,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.make"></a><a name="idm80156432"></a><p><b>22.2.</b></p> +<a name="devfaq.make"></a><a name="idm77823888"></a><p><b>22.2.</b></p> </td> <td align="left" valign="top"><p>What is the difference between <code class="varname">MAKE</code>, <code class="varname">GMAKE</code> and @@ -9633,7 +9634,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.cc"></a><a name="idm80151952"></a><p><b>22.3.</b></p> +<a name="devfaq.cc"></a><a name="idm77819408"></a><p><b>22.3.</b></p> </td> <td align="left" valign="top"><p>What is the difference between <code class="varname">CC</code>, <code class="varname">PKG_CC</code> and @@ -9651,7 +9652,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.bl3flags"></a><a name="idm80147728"></a><p><b>22.4.</b></p> +<a name="devfaq.bl3flags"></a><a name="idm77815312"></a><p><b>22.4.</b></p> </td> <td align="left" valign="top"><p>What is the difference between <code class="varname">BUILDLINK_LDFLAGS</code>, @@ -9664,7 +9665,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.bl3prefix"></a><a name="idm80145552"></a><p><b>22.5.</b></p> +<a name="devfaq.bl3prefix"></a><a name="idm77813008"></a><p><b>22.5.</b></p> </td> <td align="left" valign="top"><p>Why does <span class="command"><strong>make show-var VARNAME=BUILDLINK_PREFIX.<em class="replaceable"><code>foo</code></em></strong></span> @@ -9680,7 +9681,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.master_sites"></a><a name="idm80142480"></a><p><b>22.6.</b></p> +<a name="devfaq.master_sites"></a><a name="idm77809936"></a><p><b>22.6.</b></p> </td> <td align="left" valign="top"><p>What does <code class="literal">${MASTER_SITE_SOURCEFORGE:=package/}</code> mean? I @@ -9704,7 +9705,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.mailinglists"></a><a name="idm80126224"></a><p><b>22.7.</b></p> +<a name="devfaq.mailinglists"></a><a name="idm77801872"></a><p><b>22.7.</b></p> </td> <td align="left" valign="top"><p>Which mailing lists are there for package developers?</p></td> @@ -9729,7 +9730,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.documentation"></a><a name="idm80122384"></a><p><b>22.8.</b></p> +<a name="devfaq.documentation"></a><a name="idm77798160"></a><p><b>22.8.</b></p> </td> <td align="left" valign="top"><p>Where is the pkgsrc documentation?</p></td> @@ -9777,7 +9778,7 @@ do?</a> </tr> <tr class="question"> <td align="left" valign="top"> -<a name="devfaq.too-much-time"></a><a name="idm80115984"></a><p><b>22.9.</b></p> +<a name="devfaq.too-much-time"></a><a name="idm77791632"></a><p><b>22.9.</b></p> </td> <td align="left" valign="top"><p>I have a little time to kill. What shall I do?</p></td> diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt index cb1b4bf0d6c..91d405c846d 100644 --- a/doc/pkgsrc.txt +++ b/doc/pkgsrc.txt @@ -3204,9 +3204,18 @@ supported, e.g. PYTHON_VERSIONS_INCOMPATIBLE= 27 -If the packaged software is a Python module, include "../../lang/python/ -extension.mk". In this case, the package directory should be called " -py-software" and PKGNAME should be set to "${PYPKGPREFIX}-${DISTNAME}", e.g. +If the packaged software is a Python module, include one of ../../lang/python/ +egg.mk, ../../lang/python/distutils.mk, or ../../lang/python/extension.mk. + +Most Python packages use either "distutils" or easy-setup/setuptools ("eggs"). +if the packaged software is using setuptools, you only need to include "../../ +lang/python/egg.mk". Otherwise, if the software uses "distutils", include ".. +/../lang/python/distutils.mk". so pkgsrc will use this framework. "distutils" +uses a script called setup.py, if the "distutils" driver is not called +setup.py, set the PYSETUP variable to the name of the script. + +Either way, the package directory should be called "py-software" and PKGNAME +should be set to "${PYPKGPREFIX}-${DISTNAME}", e.g. DISTNAME= foopymodule-1.2.10 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -3218,15 +3227,6 @@ be corrected. For example: REPLACE_PYTHON= *.py -Most Python packages use either "distutils" or easy-setup ("eggs"). If the -software uses "distutils", include "../../lang/python/distutils.mk". so pkgsrc -will use this framework. "distutils" uses a script called setup.py, if the " -distutils" driver is not called setup.py, set the PYSETUP variable to the name -of the script. - -Otherwise, if the packaged software is egg-aware, you only need to include ".. -/../lang/python/egg.mk". - Some Python modules have separate distributions for Python-2.x and Python-3.x support. In pkgsrc this is handled by the versioned_dependencies.mk file. Set PYTHON_VERSIONED_DEPENDENCIES to the list of packages that should be depended |