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 Jelle van der Waa (jelly) - Saturday, 02 September 2023, 13:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
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

Closed by  Jelle van der Waa (jelly)
Saturday, 02 September 2023, 13:27 GMT
Reason for closing:  Won't fix
Additional comments about closing:  setup.py still references setuptools so it's still a makedependency.
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 Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...