GithubHelp home page GithubHelp logo

Comments (5)

konradpabjan avatar konradpabjan commented on June 4, 2024 2

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.

Ikana avatar Ikana commented on June 4, 2024 1

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.

r-chris avatar r-chris commented on June 4, 2024 1

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.

oberstet avatar oberstet commented on June 4, 2024

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.

ckingbailey avatar ckingbailey commented on June 4, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.