AdaCore / AdaCore/gnatstudio

Side effect of change for Python 3.11 in configure.

Open
#174 1 comment 0 reactions 1 assignee View on GitHub

@AdrienBoulanger is already working on this.

Since Jul 15, 2024.

Dominant language
Ada
Stars
531
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Configure was adapt to Python 3.11 in this change:

  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version.split(' ')[0])"`

Unfortunately, I got an error:

checking for python3.11.7... no
configure: error: Cannot find python3.11.7 in your system path

The explanation is that there is no executable python3.11.7 but only python3 and python3.11.

I had proposed this change to get only major and minor Python version:

am_cv_python_version=`$PYTHON -c "import sys,re; sys.stdout.write(re.findall(r'(\d+\.\d+)\.', sys.version)[0])"`

Then all is correct:
checking for python3.11... /Users/me/xnadalib-2024/bin/python3.11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.