<div dir="ltr"><div><p dir="ltr"><br>
On Nov 17, 2015 6:47 AM, &quot;Neal Gompa&quot; &lt;<a href="mailto:ngompa13@gmail.com" target="_blank">ngompa13@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Tue, Nov 17, 2015 at 9:44 AM, Toshio Kuratomi &lt;<a href="mailto:a.badger@gmail.com" target="_blank">a.badger@gmail.com</a>&gt; wrote:<br>
&gt; &gt; One thing I would change, though: instead of python2dist(name) use<br>
&gt; &gt; python2.7dist(name).  A module built for python 2.7 won&#39;t be able to import<br>
&gt; &gt; a module built for python2.6 (the python interpreter won&#39;t look in the<br>
&gt; &gt; directories in which the files are placed) so without both the major.minor<br>
&gt; &gt; numbers we won&#39;t be able to rely on the auto generated requires in the spec<br>
&gt; &gt; file.<br>
&gt; &gt;<br>
&gt; &gt; -Toshio<br>
&gt;<br>
&gt; That&#39;s already guaranteed by the auto-generated python(abi) requires,<br>
&gt; and that would also make it hugely problematic to use in spec files in<br>
&gt; any distro agnostic manner, so I don&#39;t think I will do that.<br>
&gt;<br>
I could  just be being dumb here but it doesn&#39;t seem like it would.  The python(abi) will require a specific major.minor of the python package itself.  It will not require a python-setuptools (for instance) that was built for the same version of python as the package you are installing.  If it was true, then you wouldn&#39;t need the separate python2dist and python3dist as python(abi) would take care of the difference between packages built for python2 and python3.</p><p dir="ltr"><br></p><p>example autogenerated deps:</p><p>python-setuptools</p><p>  Provides: python2dist(setuptools)</p><p>  Requires: python(abi) = 2.7</p><p>python2.6-setuptools</p><p>  Provides: python2dist(setuptools)</p><p>  Requires: python(abi) = 2.6</p><p>python2.6-foo</p><p>  Requires: python2dist(setuptools)</p><p>  Requires: python(abi) = 2.6</p><p><br></p><p>On my system, I have installed, python-2.7.0 (which provides python(abi)==2.7), python2.6-2.6.0 (which provides python(abi)==2.6), and python-setuptools (deps listed above).  I want to install python2.6foo.  The depsolver will satisfy python2dist(setuptools) with my already installed python-setuptools package and python(abi) == 2.6 with python2.6-2.6.0.  Thus, the library will not function correctly because python-2.6 will not be able to import setuptools.</p><p><br></p><p>-Toshio<br></p><p><br></p><p><br></p>
</div></div>