-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Adding check for python3.9 alongside python3.10 on Arch #10363
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
Changes from all commits
0246f97
5c6bac9
f6bc92e
d012290
d755d9d
05166a8
59679af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,21 +133,17 @@ if [ "$(uname)" = "Linux" ]; then | |
| sudo apt-get install -y python3-venv | ||
| elif type pacman >/dev/null 2>&1 && [ -f "/etc/arch-release" ]; then | ||
| # Arch Linux | ||
| # Arch provides latest python version. User will need to manually install python 3.9 if it is not present | ||
| echo "Installing on Arch Linux." | ||
| echo "Python <= 3.9.9 is required. Installing python-3.9.9-1" | ||
| case $(uname -m) in | ||
| x86_64) | ||
| sudo pacman ${PACMAN_AUTOMATED} -U --needed https://archive.archlinux.org/packages/p/python/python-3.9.9-1-x86_64.pkg.tar.zst | ||
| ;; | ||
| aarch64) | ||
| sudo pacman ${PACMAN_AUTOMATED} -U --needed http://tardis.tiny-vps.com/aarm/packages/p/python/python-3.9.9-1-aarch64.pkg.tar.xz | ||
| x86_64|aarch64) | ||
| sudo pacman ${PACMAN_AUTOMATED} -S --needed git | ||
| ;; | ||
| *) | ||
| echo "Incompatible CPU architecture. Must be x86_64 or aarch64." | ||
| exit 1 | ||
| ;; | ||
| esac | ||
| sudo pacman ${PACMAN_AUTOMATED} -S --needed git | ||
| esac | ||
| elif type yum >/dev/null 2>&1 && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f "/etc/fedora-release" ]; then | ||
| # AMZN 2 | ||
| echo "Installing on Amazon Linux 2." | ||
|
|
@@ -191,8 +187,12 @@ find_python() { | |
| if [ "$BEST_VERSION" = "3" ]; then | ||
| PY3_VERSION=$(python$BEST_VERSION --version | cut -d ' ' -f2) | ||
| if [[ "$PY3_VERSION" =~ 3.10.* ]]; then | ||
| echo "Chia requires Python version <= 3.9.9" | ||
| echo "Chia requires Python version <= 3.9.10" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably not needed to track the latest patch version. |
||
| echo "Current Python version = $PY3_VERSION" | ||
| # If Arch, direct to Arch Wiki | ||
| if type pacman >/dev/null 2>&1 && [ -f "/etc/arch-release" ]; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I imagine we could first take a pass and identify the system and store that in (a) variable(s) and then go back and act on that info instead of having the checks mixed around. But, that's a separate change. |
||
| echo "Please see https://wiki.archlinux.org/title/python#Old_versions for support." | ||
| fi | ||
| exit 1 | ||
| fi | ||
| fi | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure of the indentation here. This seems more proper but...