-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardcoded "python3" in tests/test_ansi2html.py #210
Comments
Hi @johanneskastl please allow me to do a quick braindump:
|
Sorry for the duplicate issues, somehow Github threw lots of 500 errors on me and did not show that it already created the issue... I have a patch ready that solves this for us, as soon as I am allowed to fork the repo I'll open a PR. The environment is for building a package for openSUSE, where there is only python3.11 but no python3 executable. |
@johanneskastl no worries 👍
Thanks!
That's a fair point 👍
Why is that considered an intact environment? Doesn't this break a lot of things? |
PS: @johanneskastl for backup of my argument, I would like to share this reference:
(from https://peps.python.org/pep-0394/#for-python-runtime-distributors) |
In this case the regular python3 is provided by a different python version (3.6) that cannot be changed. But the package I am trying to build is for a newer python stack that is to be installed in parallel. And which is not the same version. Hence using And during build only python3.11 is available, which is not providing the python3 executable. Does this explain things a little? |
@johanneskastl this sounds contradictory:
Please help me clean up the picture. Thanks! |
Sure. During the RPM build only the required dependencies are present, which means python3.11 but no python3.6. Hence no This is done because python3.11 MUST NOT provide this executable, so it can be installed in parallel to 3.6 later on an actual server. On the server there is a python3 present, but it is 3.6 and not 3.11 which the package is built for. Hence this comment:
|
@johanneskastl okay, thanks for elaborating 👍 |
Sure, sorry for not being concise in the first place. |
tests/test_ansi2html.py
contains a hardcodedpython3
executable name, which makes this test fail if there is no python3 available (but python3.11 or similar).The patch is easy, I'll open a PR once Github fixes the outage that prevents forking this repository...
The text was updated successfully, but these errors were encountered: