Closed PaulYuuu closed 1 month ago
Hello @clebergnu @richtja, although I think this is a MarkupSafe bug, I still want to discuss it with you.
From MarkupSafe>=3.0.0, it introduces from setuptools.errors import CCompilerError
in setup.py. However, this behavior requires setuptools>=59.0, but the version provided by RHEL9 system is python3-setuptools-53.0.0-13.el9.noarch
. We can use pip install
instead of python3 setup.py install
, but I checked the repo usage, still have some setup.py install/develop
. Do you have some opinions?
E.g.
Hi @PaulYuuu, yes we are aware that there might be dependency issues with setuptools, also the setuptools is not shipped with python3.12 anymore. Therefore, we plan to work on complete removal of setuptools dependency in #5754 and that should also fix this issue. But for now, I think we can add the MarkupSafe<3.0.0 requirement to html plugin. Would that be useful for you?
Hello @richtja, this is not an urgent task, I already pick workaround 1 in our internal repo, but if someone has the same problem, you can decide to apply it. And seems that not all platforms can trigger it, MarkupSafe provides wheel for x86 and aarch64(https://github.com/pallets/markupsafe/releases), so I believe they will not hit this issue.
And yes, setuptools is not shipped with python3.12 together, however if we plan to remove this dependency, we have to choose another build system, which can be hatchling/poetry. I tried to migrate avocado to pyproject.toml with still using setuptools https://github.com/avocado-framework/avocado/pull/5962/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711, but many custom targets in setup.py I cannot handle them.
Another example is the VT one: https://github.com/avocado-framework/avocado-vt/pull/3924
Hello @richtja, this is not an urgent task, I already pick workaround 1 in our internal repo, but if someone has the same problem, you can decide to apply it. And seems that not all platforms can trigger it, MarkupSafe provides wheel for x86 and aarch64(https://github.com/pallets/markupsafe/releases), so I believe they will not hit this issue.
I just found out that our CI catch this, therefore I need to add the MarkupSafe<3.0.0 requirement to html plugin.
And yes, setuptools is not shipped with python3.12 together, however if we plan to remove this dependency, we have to choose another build system, which can be hatchling/poetry. I tried to migrate avocado to pyproject.toml with still using setuptools https://github.com/avocado-framework/avocado/pull/5962/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711, but many custom targets in setup.py I cannot handle them.
Another example is the VT one: avocado-framework/avocado-vt#3924
Thank you for all that work, I will look into this.
Describe the bug When installing the avocado-framework-plugin-result-html plugin via
python3 setup.py install
, the plugin failed to install cause the setuptools version was outdated.Steps to reproduce
Expected behavior
Current behavior
System information (please complete the following information):
python3 setup.py install
Additional information Workarounds:
pip install MarkupSafe
-->python3 setup.py install