Skip to content
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

build: Simplify python discovery at configure time #3990

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dridi
Copy link
Member

@dridi dridi commented Sep 26, 2023

If the desired python command is newer than the ones known by aclocal, we can use the PYTHON variable to select it:

./configure PYTHON=python3.11

This already worked before this change, but now we stop chasing python releases to get them automatically tested.

Refs #3982


Keeping as a draft for the moment, considering to hold it until we know the next major version (7.5.0 or 8.0.0) to make sure we don't forget to update the serial.

@catap
Copy link
Contributor

catap commented Sep 26, 2023

❤️

@dridi dridi marked this pull request as draft September 26, 2023 13:22
If the desired python command is newer than the ones known by aclocal,
we can use the PYTHON variable to select it:

    ./configure PYTHON=python3.11

This already worked before this change, but now we stop chasing python
releases to get them automatically tested.

Refs varnishcache#3982
AC_MSG_ERROR([Python >= 3.4 is required.])
])

AM_PATH_PYTHON([3.4], [], [AC_MSG_ERROR([Python >= 3.4 is required.])])
Copy link
Contributor

@catap catap Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AM_PATH_PYTHON([3.4], [], [AC_MSG_ERROR([Python >= 3.4 is required.])])
AM_PATH_PYTHON([3.4], [], [AC_MSG_ERROR([Python >= 3.4 is required. You may define used python via PYTHON=/path/to/python option at ./configure])])

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure that it worth it, but might help someone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants