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

Python virtual env to use in GH actions #530

Open
dsimansk opened this issue Oct 10, 2024 · 1 comment
Open

Python virtual env to use in GH actions #530

dsimansk opened this issue Oct 10, 2024 · 1 comment

Comments

@dsimansk
Copy link
Contributor

dsimansk commented Oct 10, 2024

          Let's open an issue to properly investigate this for all python deps? Options are:
  • use break-system-packages flag as a workaround
  • use virtual env
  • use system package manager or pipx

Originally posted by @skonto in knative/community#1620 (comment)

The issues popped up in knative/community Peribolos check, but we have a couple more of places that uses Python tools. That can have the same symptoms.

Related to GH runner update of python package: actions/runner-images#8615

@dsimansk dsimansk changed the title Let's open an issue to properly investigate this for all python deps? Options are: Python virtual env to use in GH actions Oct 10, 2024
@dsimansk
Copy link
Contributor Author

Some of the options:

Use --break-system-packages

pip install strictyaml --break-system-packages

Pin Python version to previous one:

    - uses: actions/setup-python@v5
      with:
        python-version: "3.11"    
    - run: pip install strictyaml

Init the full virtual env?

/cc @knative/productivity-leads

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

No branches or pull requests

1 participant