Skip to content

How to skip pip upgrade? #1096

Open
Open
@retzero

Description

@retzero

Description:
I'm running self-hosted runner w/o internet connection.
Unfortunately the setup-python action perform pip upgrade and eventually failed due to network unreachable.
Q1) Is it possible to skip pip upgrade step?
Q2) How can I configure our internal private repository instead of pypi.org?

Execute installation script
  Check if Python hostedtoolcache folder exist...
  Creating Python hostedtoolcache folder...
  Create Python 3.10.12 folder
  Copy Python binaries to hostedtoolcache folder
  Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
  Upgrading pip...
  Looking in links: /tmp/tmp9gc2bf_x
  Requirement already satisfied: setuptools in /home/actions/_work/_tool/Python/3.10.12/x64/lib/python3.10/site-packages (65.5.0)
  Requirement already satisfied: pip in /home/actions/_work/_tool/Python/3.10.12/x64/lib/python3.10/site-packages (23.0.1)
  Error: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5320422a40>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pip/
  Error: WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5320421150>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pip/
  Error: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53204228f0>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pip/
  Error: WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53204217': /simple/pip/
  Error: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5320422f20>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pip/
  Error: ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
  Error: ERROR: No matching distribution found for pip
  Error: The process '/usr/bin/bash' failed with exit code 1

Action version:
v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

Expected behavior:
A description of what you expected to happen.

Actual behavior:
A description of what is actually happening.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions