Thanks Landry and Stuart,
With that information I tried to add a little bit of clarity to the man
page using my understanding of those options. Never written a man page
before so it was an interesting experience.
If this looks good would it be possible to get this merged for future
releases?
--- port-modules.5.orig Sun Jun 3 16:12:15 2018
+++ port-modules.5 Sun Jun 3 17:07:11 2018
@@ -1339,19 +1339,29 @@
.Ev MODPY_RUN_DEPENDS ,
.Ev MODPY_BUILD_DEPENDS
and
-.Ev MODPY_ADJ_FILES .
-Appends to
+.Ev MODPY_ADJ_FILES.
+.Ev MODPY_RUN_DEPENDS,
+and
+.Ev MODPY_BUILD_DEPENDS
+append to
.Ev RUN_DEPENDS
-unless
-.Ev MODPY_RUNDEP
-is set to No.
-Appends to
+and
.Ev BUILD_DEPENDS
unless
+.Ev MODPY_RUNDEP
+or
.Ev MODPY_BUILDDEP
is set to No or
.Ev NO_BUILD
-is set to Yes.
+is set to Yes. The depends options are primarily
+used with port submodules, otherwise
+.Ev RUN_DEPENDS
+or
+.Ev BUILD_DEPENDS
+should be used.
+.Ev MODPY_RUN_DEPENDS,
+is set automatically to the required versions of Python and
+py-setuptools as applicable.
.Ev MODPY_VERSION
is the default version used by all python modules.
Ports which use the setuptools module should set
On 2018-06-03 01:27, Landry Breuil wrote:
> On Sun, Jun 03, 2018 at 01:28:26AM +0100, Stuart Henderson wrote:
>> On 2018/06/02 17:38, Edward Lopez-Acosta wrote:
>>> Would anyone be able to clarify what MODPY_RUN_DEPENDS does? Per the
>>> documentation (man port-modules) it says it should append to RUN_DEPENDS.
>>> When I have tested this though I have found it to not be the case.
>>>
>>> I submitted a couple ports to this list previously which use
>>> MODPY_RUN_DEPENDS for dependency modules. But the built package does not
>>> actually get said dependencies added to it.
>>>
>>> Can anyone clarify this within the documentation and possibly update the man
>>> page for clarity? Or am I totally missing what this option is for? I did
>>> also try adding MODPY_RUNDEP=Yes but that did not seem to help.
>>>
>>> Thank you in advance.
>>>
>>
>> MODPY_RUN_DEPENDS is populated with the string that you would need to
>> add to RUN_DEPENDS to depend on python itself, plus an additional one
>> for py-setuptools if needed.
>>
>> It's automatically appended to RUN_DEPENDS unless MODPY_RUNDEP=No.
>> (MODPY_RUNDEP=Yes is the default).
>
> I'll add to that 'Iff the lang/python MODULE is used' :)
>
No comments:
Post a Comment