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

Set up virtual environments on ARM64 machines #3

Closed
Tracked by #52
NickVolynkin opened this issue Jun 27, 2022 · 0 comments · Fixed by #2
Closed
Tracked by #52

Set up virtual environments on ARM64 machines #3

NickVolynkin opened this issue Jun 27, 2022 · 0 comments · Fixed by #2
Assignees

Comments

@NickVolynkin
Copy link
Contributor

NickVolynkin commented Jun 27, 2022

Action https://github.com/actions/setup-python doesn't work on ARM64 machines:

Run actions/setup-python@v4
  with:
    python-version: 3.10.x
    cache: pip
    token: ***
  env:
    dist: debian
Version 3.10.x was not found in the local cache
Error: Version 3.10.x with arch arm64 not found
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

There's a possible workaround for macOS but it doesn't work on linux/aarch64. (See actions/setup-python#108 (comment)).

To run Python code on such machines outside of Docker containers, we need a suitable action for setting up a virtual environment.

@NickVolynkin NickVolynkin self-assigned this Jun 27, 2022
NickVolynkin added a commit that referenced this issue Jun 27, 2022
Made as a (partial) replacement for https://github.com/actions/setup-python,
particularly for using on ARM64 machines, where setup-python doesn't work.

Sometimes we don't need to set up the exact version of Python, but rather
need to set up a virtual environment and install a few packages in it.

If `virtualenv` is not found in the system, this action will install it
with `pip install --user`. This way it will not interfere with
system Python packages.

Resolve #3
NickVolynkin added a commit that referenced this issue Jun 27, 2022
Made as a (partial) replacement for https://github.com/actions/setup-python,
particularly for using on ARM64 machines, where setup-python doesn't work.

Sometimes we don't need to set up the exact version of Python, but rather
need to set up a virtual environment and install a few packages in it.

If `virtualenv` is not found in the system, this action will install it
with `pip install --user`. This way it will not interfere with
system Python packages.

Resolve #3
NickVolynkin added a commit that referenced this issue Jun 27, 2022
Made as a (partial) replacement for https://github.com/actions/setup-python,
particularly for using on ARM64 machines, where setup-python doesn't work.

Sometimes we don't need to set up the exact version of Python, but rather
need to set up a virtual environment and install a few packages in it.

If `virtualenv` is not found in the system, this action will install it
with `pip install --user`. This way it will not interfere with
system Python packages.

Resolve #3
@NickVolynkin NickVolynkin linked a pull request Jun 27, 2022 that will close this issue
NickVolynkin added a commit that referenced this issue Jun 27, 2022
Made as a (partial) replacement for https://github.com/actions/setup-python,
particularly for using on ARM64 machines, where setup-python doesn't work.

Sometimes we don't need to set up the exact version of Python, but rather
need to set up a virtual environment and install a few packages in it.

If `virtualenv` is not found in the system, this action will install it
with `pip install --user`. This way it will not interfere with
system Python packages.

Resolve #3
ylobankov pushed a commit that referenced this issue Jul 26, 2022
Made as a (partial) replacement for https://github.com/actions/setup-python,
particularly for using on ARM64 machines, where setup-python doesn't work.

Sometimes we don't need to set up the exact version of Python, but rather
need to set up a virtual environment and install a few packages in it.

If `virtualenv` is not found in the system, this action will install it
with `pip install --user`. This way it will not interfere with
system Python packages.

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

Successfully merging a pull request may close this issue.

1 participant