<div dir="ltr"><div>Thanks Andrew.  I thought I'd done that, but obviously not..doh!<br></div><div><br></div><div>I've submitted python2-wheel (minus usr/bin/wheel) and tested building those three builds against it successfully.  That will be better than keeping the wheel slackbuild around.</div><div><br></div><div>Attached are the dep changes I used for those 3 slackbuilds.</div><div><br></div><div>Cheers<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 1, 2023 at 4:43 AM Andrew Clemons <<a href="mailto:andrew.clemons@gmail.com">andrew.clemons@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 1/05/23 07:16, fourtysixandtwo wrote:<br>
> Arnaud's tests backup my findings and why I didn't create a<br>
> python2-wheel and suggest the removal of the old wheel slackbuild<br>
> sooner rather than later.  It's just not needed and would only cause a<br>
> conflict (/usr/bin/wheel) with python3-wheel.  And we don't need more<br>
> wxPython-like conflicts!<br>
> <br>
> The other two builds (rencode and pynacl) that have those same<br>
> warnings need to be split/renamed, but also build just fine despite<br>
> the wheel missing warning. (as mentioned in my PR)<br>
> <br>
> My testing included comparing the build log and packages between no<br>
> wheel , old wheel slackbuild, and just python3-wheel installed.  There<br>
> is no difference except the warning and functionality tests are<br>
> successful.  (except for python2-automat which seems to be broken and<br>
> more testing would be moot given Arnaud planning it's removal)<br>
> <br>
> So I suggest removing the 3 commits to "fix wheel dependency" sitting<br>
> in Andrew's branch and we remove the old wheel slackbuild.<br>
<br>
 > It's just not needed<br>
<br>
That is not quite true.<br>
<br>
The reason we see the warning is because there is no python2 version of <br>
wheel and pip is downloading it as root.<br>
<br>
Take pynacl for example:<br>
<br>
```<br>
# ls -A /var/lib/pkgtools/packages/*SBo*<br>
/var/lib/pkgtools/packages/cffi-1.13.2-x86_64-1_SBo <br>
/var/lib/pkgtools/packages/python3-flit_core-3.8.0-x86_64-2_SBo <br>
/var/lib/pkgtools/packages/python3-wheel-0.40.0-x86_64-1_SBo<br>
/var/lib/pkgtools/packages/pycparser-2.19-x86_64-1_SBo <br>
/var/lib/pkgtools/packages/python3-installer-0.5.1-x86_64-1_SBo<br>
<br>
# unshare -n bash pynacl.SlackBuild<br>
[...]<br>
WARNING: The wheel package is not available.<br>
DEPRECATION: Python 2.7 reached the end of its life on January 1st, <br>
2020. Please upgrade your Python as Python 2.7 is no longer maintained. <br>
A future version of pip will drop support for Python 2.7. More details <br>
about Python 2 support in pip, can be found at <br>
<a href="https://pip.pypa.io/en/latest/development/release-process/#python-2-support" rel="noreferrer" target="_blank">https://pip.pypa.io/en/latest/development/release-process/#python-2-support</a><br>
WARNING: Retrying (Retry(total=4, connect=None, read=None, <br>
redirect=None, status=None)) after connection broken by <br>
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection <br>
object at 0x7f6c213b07d0>: Failed to establish a new connection: [Errno <br>
-3] Temporary failure in name resolution',)': /simple/wheel/<br>
WARNING: Retrying (Retry(total=3, connect=None, read=None, <br>
redirect=None, status=None)) after connection broken by <br>
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection <br>
object at 0x7f6c213b0e10>: Failed to establish a new connection: [Errno <br>
-3] Temporary failure in name resolution',)': /simple/wheel/<br>
WARNING: Retrying (Retry(total=2, connect=None, read=None, <br>
redirect=None, status=None)) after connection broken by <br>
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection <br>
object at 0x7f6c213b0d50>: Failed to establish a new connection: [Errno <br>
-3] Temporary failure in name resolution',)': /simple/wheel/<br>
WARNING: Retrying (Retry(total=1, connect=None, read=None, <br>
redirect=None, status=None)) after connection broken by <br>
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection <br>
object at 0x7f6c213b0a10>: Failed to establish a new connection: [Errno <br>
-3] Temporary failure in name resolution',)': /simple/wheel/<br>
WARNING: Retrying (Retry(total=0, connect=None, read=None, <br>
redirect=None, status=None)) after connection broken by <br>
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection <br>
object at 0x7f6c213b0c50>: Failed to establish a new connection: [Errno <br>
-3] Temporary failure in name resolution',)': /simple/wheel/<br>
ERROR: Could not find a version that satisfies the requirement wheel <br>
(from versions: none)<br>
ERROR: No matching distribution found for wheel<br>
Traceback (most recent call last):<br>
   File "setup.py", line 264, in <module><br>
     "Programming Language :: Python :: 3.8",<br>
   File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", <br>
line 144, in setup<br>
     _install_setup_requires(attrs)<br>
   File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", <br>
line 139, in _install_setup_requires<br>
     dist.fetch_build_eggs(dist.setup_requires)<br>
   File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line <br>
721, in fetch_build_eggs<br>
     replace_conflicting=True,<br>
   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", <br>
line 782, in resolve<br>
     replace_conflicting=replace_conflicting<br>
   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", <br>
line 1065, in best_match<br>
     return self.obtain(req, installer)<br>
   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", <br>
line 1077, in obtain<br>
     return installer(requirement)<br>
   File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line <br>
777, in fetch_build_egg<br>
     return fetch_build_egg(self, req)<br>
   File "/usr/lib64/python2.7/site-packages/setuptools/installer.py", <br>
line 130, in fetch_build_egg<br>
     raise DistutilsError(str(e))<br>
distutils.errors.DistutilsError: Command '['/usr/bin/python2', '-m', <br>
'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', <br>
'/tmp/tmpgyzsUE', '--quiet', 'wheel']' returned non-zero exit status 1<br>
```<br>
<br>
If network access is allowed, sure it builds, but wheel _is_ needed and <br>
it falls back to having pip download it.<br>
<br>
It's the same situation for all three of the builds I fixed:<br>
<br>
python/rencode<br>
python/python2-automat<br>
python/pynacl<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br>
</blockquote></div>