<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body 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 class="moz-txt-link-freetext" href="https://pypi.python.org/pypi/pywbem/0.8.3">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 class="moz-txt-link-freetext" href="https://github.com/pywbem/pywbem/issues/113">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 class="moz-txt-link-freetext" href="https://pypi.python.org/pypi/bandit/0.17.3">https://pypi.python.org/pypi/bandit/0.17.3</a><br>
* <a class="moz-txt-link-freetext" href="https://pypi.python.org/pypi/json-spec/0.9.14">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>
</body>
</html>