Skip to content

Commit

Permalink
ci: Building Python Vendored Wheels stage can use a generic docker co…
Browse files Browse the repository at this point in the history
…ntainer
  • Loading branch information
henryborchers committed Nov 1, 2024
1 parent 0b3c70a commit 66941b3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 158 deletions.
34 changes: 19 additions & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -1064,24 +1064,28 @@ pipeline {
stages{
stage('Building Python Vendored Wheels'){
agent {
dockerfile {
filename 'ci/docker/python/windows/tox/Dockerfile'
docker{
image 'python'
label 'windows && docker && x86'
additionalBuildArgs '--build-arg PIP_EXTRA_INDEX_URL --build-arg PIP_INDEX_URL --build-arg UV_EXTRA_INDEX_URL --build-arg CHOCOLATEY_SOURCE --build-arg chocolateyVersion --build-arg PIP_DOWNLOAD_CACHE=c:/users/containeradministrator/appdata/local/pip --build-arg UV_CACHE_DIR=c:/users/containeradministrator/appdata/local/uv'
args '-v pipcache_speedwagon:c:/users/containeradministrator/appdata/local/pip -v uvcache_speedwagon:c:/users/containeradministrator/appdata/local/uv'
}
args '--mount source=python-tmp-speedwagon,target=C:\\Users\\ContainerUser\\Documents'
}
}
environment{
UV_INDEX_STRATEGY='unsafe-best-match'
PIP_CACHE_DIR='C:\\Users\\ContainerUser\\Documents\\pipcache'
UV_TOOL_DIR='C:\\Users\\ContainerUser\\Documents\\uvtools'
UV_PYTHON_INSTALL_DIR='C:\\Users\\ContainerUser\\Documents\\uvpython'
UV_CACHE_DIR='C:\\Users\\ContainerUser\\Documents\\uvcache'
VC_RUNTIME_INSTALLER_LOCATION='c:\\msvc_runtime\\'
}
steps{
withEnv(['PY_PYTHON=3.11']) {
bat(
label: 'Getting dependencies to vendor',
script: '''
py -m pip install pip --upgrade
py -m pip install wheel
py -m pip wheel -r requirements-vendor.txt --no-deps -w .\\deps\\ -i %PIP_EXTRA_INDEX_URL%
'''
)
}
bat(
label: 'Getting dependencies to vendor',
script: '''python -m venv venv && venv\\Scripts\\pip install uv
venv\\Scripts\\uvx --index-strategy=unsafe-best-match --python 3.11 --with wheel pip wheel -r requirements-vendor.txt --no-deps -w .\\deps\\ -i %PIP_EXTRA_INDEX_URL%
rmdir /S /Q venv
'''
)
stash includes: 'deps/*.whl', name: 'VENDORED_WHEELS_FOR_CHOCOLATEY'
}
}
Expand Down
11 changes: 0 additions & 11 deletions ci/docker/python/linux/jenkins/Dockerfile

This file was deleted.

39 changes: 0 additions & 39 deletions ci/docker/python/windows/jenkins/Dockerfile

This file was deleted.

93 changes: 0 additions & 93 deletions ci/docker/python/windows/tox/Dockerfile

This file was deleted.

0 comments on commit 66941b3

Please sign in to comment.