<div dir="ltr">Questions about PyPI should be directed at the distutils-sig mailing list.<br><br><div class="gmail_quote"><div dir="ltr">On Tue, 19 Apr 2016 at 08:12 Andreas Maier <<a href="mailto:andreas.r.maier@gmx.de">andreas.r.maier@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<font size="+1">Hi,<br>
I have a package "pywbem" which in its setup script specifies a
number of dependent packages via "install_requires".<br>
<br>
I should also say that it extends setuptools/distutils with its
own additional keywords, e.g. it adds a "develop_requires", but I
believe (hope) that is irrelevant for my problem.<br>
<br>
In pywbem 0.8.3, the dependencies are:<br>
<br>
</font><font size="+1"><tt> args = {<br>
...,<br>
'install_requires': [</tt><tt><br>
</tt><tt> 'six',</tt><tt><br>
</tt><tt> 'ply',</tt><tt><br>
</tt><tt> ],</tt><tt><br>
</tt></font><font size="+1"><tt><font size="+1"><tt> ...,<br>
</tt></font> }<br>
</tt></font><font size="+1"><br>
and when running on Python 2.x, an additional one is added,
dependent on the OS platform and bit size:<br>
<br>
</font><font size="+1"><tt> if sys.version_info[0] == 2:</tt><tt><br>
</tt><tt> if platform.system() == 'Windows':</tt><tt><br>
</tt><tt> if platform.architecture()[0] == '64bit':</tt><tt><br>
</tt><tt> m2crypto_req = 'M2CryptoWin64>=0.21'</tt><tt><br>
</tt><tt> else:</tt><tt><br>
</tt><tt> m2crypto_req = 'M2CryptoWin32>=0.21'</tt><tt><br>
</tt><tt> else:</tt><tt><br>
</tt><tt> m2crypto_req = 'M2Crypto>=0.24'</tt><tt><br>
</tt><tt> args['install_requires'] += [</tt><tt><br>
</tt><tt> m2crypto_req,</tt><tt><br>
</tt><tt> ]</tt><tt><br>
</tt></font><font size="+1"><br>
The problem is that the pywbem package on PyPI does not show these
dependencies: <a href="https://pypi.python.org/pypi/pywbem/0.8.3" target="_blank">https://pypi.python.org/pypi/pywbem/0.8.3</a><br>
<br>
I wonder whether this is the reason for a particular installation
problem we have seen
(<a href="https://github.com/pywbem/pywbem/issues/113" target="_blank">https://github.com/pywbem/pywbem/issues/113</a>).<br>
<br>
I do see other projects on PyPI, that show the dependencies they
specify in their setup scripts, on their PyPI package page in a "</font><font size="+1"><strong>Requires Distributions</strong>" section:<br>
<br>
* <a href="https://pypi.python.org/pypi/bandit/0.17.3" target="_blank">https://pypi.python.org/pypi/bandit/0.17.3</a><br>
* <a href="https://pypi.python.org/pypi/json-spec/0.9.14" target="_blank">https://pypi.python.org/pypi/json-spec/0.9.14</a><br>
<br>
Many others also do not have their dependencies shown, including
six, pbr, PyYAML, lxml, to name just a few.<br>
<br>
So far, I was unable to find out what the presence or absence of
that information is related to, in the source of the project.<br>
<br>
Here are my questions:<br>
<br>
1. What causes </font><font size="+1"><font size="+1"><font size="+1">the "Requires Distributions" section</font></font>
on a PyPI package page to show up there?</font><br>
<br>
<font size="+1"><font size="+1">2. Is it important to show up there
(e.g. for some tools)?<br>
<br>
</font>Andy<br>
<br>
</font>
</div>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</blockquote></div></div>