Comments (5)
I've added Docs on how to configure setup-python
on a self hosted runner. actions/runner-images#275
Sometime around mid-January we did a major overhaul in terms of how Python gets installed on our images. All the versions of Python that we use for our VMS now get released as NPM packages that can be found here: https://github.com/actions/virtual-environments-packages
Before these NPM packages it was pretty painful, but now it's a matter of setting up a few env variables + running npm install
from setup-python.
I'm running self hosted runners on AWS, I've been trying to install the tooling from this repo into our runners, but no luck yet, would that be the correct approach? I would be happy to write the documentation for this one I get it working.
from setup-python.
There is some basic info about the cache here: https://github.com/marketplace/actions/setup-python-environment#hosted-tool-cache
Would this script: https://github.com/actions/virtual-environments/blob/master/images/linux/scripts/installers/1804/hosted-tool-cache.sh be the one to setup the runner cache?
It would be very helpful to get an idea of how to do that in our self-hosted
virtual machines.
from setup-python.
I've added Docs on how to configure setup-python on a self hosted runner.
Mmh, ok, sounds good, thanks, but where are the docs? Can't find it ..
The link points to a closed issue relating to TK. I have searched for docs. The only reference in https://github.com/actions/virtual-environments/blob/main/README.md points to https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners - but that does not talk about Python at all.
So how do I configure Python (eg CPython 3.8 vs PyPy 3.7 available on a self-hosted runner) so that the CI job run will be done in a newly created virtual env?
from setup-python.
@oberstet I dug around and found this https://github.com/actions/setup-python#using-setup-python-with-a-self-hosted-runner
from setup-python.
Related Issues (20)
- Error: 'python3.11' runtime is not supported HOT 6
- Prioritize RUNNER_TOOL_CACHE over AGENT_TOOLSDIRECTORY HOT 4
- python <3.10 fails on macos-14 with `dyld: Library not loaded` HOT 7
- Cache key conflict HOT 2
- Can't install python 3.12 on linux x64 HOT 10
- "pip cache is not found" (/home/runner/.cache/pip) HOT 7
- Demonstrate model evolution tracking HOT 1
- Wrong python version installed HOT 7
- J HOT 1
- Slow download HOT 4
- Caching conflicts when using `extra` dependencies HOT 2
- Unable to build requirement with pip HOT 4
- bad setuptools installation in actions/setup-python@v5 HOT 3
- my_script.py HOT 2
- Recommendations for caching poetry dependencies causes the wrong python version to be used for poetry install HOT 10
- Allow passing installer args to the Windows MSI HOT 1
- Importing psycopg2 (installed via pip) reports: ImportError: /opt/hostedtoolcache/.../3.13.0-alpha.6/.../psycopg2/_psycopg.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get HOT 1
- macos-14-arm64 with provisionner 2.0.361.1+33a726b54233caea13315dba3887b0e7c5a1d482 can no longer load Python extension HOT 6
- Python 3.8 and 3.9 not found on macOS HOT 11
- Python Path is always first HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-python.