Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69852 - python-appdirs should not have python-setuptools as a makedependency

Attached to Project: Arch Linux
Opened by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 09:39 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 21 April 2021, 06:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

First of all, the python-appdirs builds just fine if python-setuptools are not installed. But more importantly, python-setuptools do in fact have python-appdirs as a (regular) dependency. This bug causes a depndency cycle that confused me when I was trying to build them for an older version of Python with no apparent point where to start. The correct order is appdirs first, setuptools second.
This task depends upon

Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 09:43 GMT
However, I am no sure if the build result of python-appdirs is perhaps somewhat different if python-setuptools aren't installed. This is a piece of code in setup.py of python-appdirs:

```
# appdirs is a dependency of setuptools, so allow installing without it.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
```
Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 09:47 GMT
It will probably fail to run the tests in the check() function if setuptools aren't installed. So it would still make sense to make setuptools a recommended dependency or something.
Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 09:55 GMT
The same bug is for the other two direct dependencies python-packaging, python-ordered-set and the indirect dependency python-pyparsing
Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 10:03 GMT
To be more precise with the above, python-packaging can be built even without any of python-setuptools or python-pyparsing installed. So python-pyparsing should probably be only a recommended dependency of python-packaging?
Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 10:05 GMT
or rather make python-setuptools and (python-pyparsing ?) a checkdependency rather than a recommended dependency. (sorry for spamming a bit, I am writing here as I'm digging deeper into the problem)
Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 10:08 GMT
also python-packaging does not truly depend on python-six
Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 10:31 GMT
Sadly, this kind of bug seems to occur even upstream with for example python-pyparsing which actually is necessary to build python-setuptools (but not to build python-packaging). I made an upstream bug report, but I am not sure, what is the best solution for Arch here.
Comment by Jáchym Barvínek (kamahl) - Tuesday, 02 March 2021, 11:02 GMT

Loading...