Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
else
case $ALIBUILD_ARCHITECTURE in
osx*)
python3 -c 'from sys import version_info; print(f"alibuild_system_replace: python-brew{version_info.major}.{version_info.minor}")' ;;
# We need to include the python patch number because brew has it in the path
python3 -c 'from sys import version_info; print(f"alibuild_system_replace: python-brew{version_info.major}.{version_info.minor}.{version_info.micro}")' ;;

Check warning on line 35 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

line too long (170 > 120 characters) [yl:line-length]

Check warning on line 35 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

line too long (170 > 120 characters) [yl:line-length]
*)
python3 -c 'from sys import version_info; print(f"alibuild_system_replace: python{version_info.major}.{version_info.minor}")'
;;
Expand All @@ -42,10 +43,12 @@
python3 -c 'import sys; import sqlite3; sys.exit(1 if sys.version_info < (3, 9) or sys.version_info > (3, 14) else 0)' && python3 -m pip --help > /dev/null && printf '#include "pyconfig.h"' | cc -c $(python3-config --includes) -xc -o /dev/null -; if [ $? -ne 0 ]; then printf "Python, the Python development packages, and pip must be installed on your system.\nUsually those packages are called python, python-devel (or python-dev) and python-pip.\n"; exit 1; fi
prefer_system_replacement_specs:
"python-brew3.*":
version: "%(key)s"

Check notice on line 46 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.*.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 46 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.*.version: substitution variable 'key' is invalid [ali:schema]

Check notice on line 46 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.*.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 46 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.*.version: substitution variable 'key' is invalid [ali:schema]
env:
PYTHON_ROOT: $(brew --prefix python3)
PYTHON_REVISION: ""
"python3.*":
version: "%(key)s"

Check notice on line 51 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.*.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 51 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.*.version: substitution variable 'key' is invalid [ali:schema]

Check notice on line 51 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.*.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 51 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.*.version: substitution variable 'key' is invalid [ali:schema]
env:
# Python is in path, so we need a dummy placeholder for PYTHON_ROOT
# to avoid having /bin in the middle of the path.
Expand All @@ -54,10 +57,12 @@

# Workaround to support old alibuild versions that don't regex match alibuild_system_replace
"python-brew3":
version: "%(key)s"

Check notice on line 60 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 60 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.version: substitution variable 'key' is invalid [ali:schema]

Check notice on line 60 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 60 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python-brew3.version: substitution variable 'key' is invalid [ali:schema]
env:
PYTHON_ROOT: $(brew --prefix python3)
PYTHON_REVISION: ""
"python3":
version: "%(key)s"

Check notice on line 65 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 65 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.version: substitution variable 'key' is invalid [ali:schema]

Check notice on line 65 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check failure on line 65 in python.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.python3.version: substitution variable 'key' is invalid [ali:schema]
env:
# Python is in path, so we need a dummy placeholder for PYTHON_ROOT
# to avoid having /bin in the middle of the path.
Expand Down
Loading