Skip to content

Remove pip-install input of setup-python - #1

Closed
dirkf wants to merge 11 commits into
nopipinstallfrom
master
Closed

dirkf wants to merge 11 commits into
nopipinstallfrom
master

Conversation

@dirkf

@dirkf dirkf commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

pip-install input was removed from actions/setup-python (v7+)

See actions/setup-python#1336 and associated issue.

dirkf and others added 9 commits May 15, 2024 15:38
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@83679a8...a309ff8)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@a309ff8...ece7cb0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.3.0 to 7.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@ece7cb0...5fda3b9)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
dirkf

This comment was marked as duplicate.

@dirkf dirkf left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove pip-install input of setup-python.

Comment thread setup_pip.ps1 Outdated

@dirkf dirkf Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$Version = $env:PYTHON_VERSION
$PythonPath = $env:SETUP_PYTHON_PATH
$Semver = $Version.Split('.')
Write-Output "Setting up pip for python $Version in path $PythonPath"
if (!($Semver[0] -like 'pypy*') -and ([int]$Semver[0] -eq 3 -and [int]$Semver[1] -lt 5)) {
if ([int]$Semver[1] -gt 2) {
Write-Output "Using get_pip.py..."
$VersionNumber = $Semver[0]
$Major = $Semver[1]
$GetPipFile = New-TemporaryFile
Invoke-WebRequest -Uri "https://bootstrap.pypa.io/pip/$VersionNumber.$Major/get-pip.py" -OutFile $GetPipFile
Invoke-Expression -Command "$PythonPath $GetPipFile"
Write-Output "Installing typing for old Python versions..."
Invoke-Expression -Command "$PythonPath -m pip install typing"
Remove-Item $GetPipFile
if ([int]$Semver[1] -eq 4) {
Invoke-Expression -Command "$PythonPath -m pip install --upgrade wheel setuptools"
}
} else {
Write-Output "Pip is not available for version $Version"
Write-Output "Proceed with manual installation at own risk"
}
} else {
Write-Output "Using ensurepip..."
Invoke-Expression -Command "$PythonPath -m ensurepip"
Invoke-Expression -Command "$PythonPath -m pip install --upgrade pip"
Write-Output "Installing wheel and setuptools..."
Invoke-Expression -Command "$PythonPath -m pip install --upgrade wheel setuptools"
}

Comment thread action.yml Resolved
Comment thread action.yml Resolved
Comment thread action.yml Resolved
Comment thread README.md Resolved
Comment thread action.yml Resolved
@dirkf dirkf closed this Nov 1, 2026
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 this pull request may close these issues.

2 participants