Skip to content

Commit 4bcf1a0

Browse files
authored
remove explicit calls to pyenv (#2004)
1 parent 8577ecb commit 4bcf1a0

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.semaphore/semaphore.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ blocks:
3131
- name: Build
3232
commands:
3333
- sem-version python 3.11
34-
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
35-
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
3634
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse 2.16.2
3735
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
3836
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/
@@ -57,8 +55,6 @@ blocks:
5755
- name: Build
5856
commands:
5957
- sem-version python 3.11
60-
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
61-
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
6258
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
6359
- tar -czf wheelhouse-macOS-${ARCH}-py313.tgz wheelhouse
6460
- artifact push workflow wheelhouse-macOS-${ARCH}-py313.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313.tgz/
@@ -81,8 +77,6 @@ blocks:
8177
- name: Build
8278
commands:
8379
- sem-version python 3.11
84-
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
85-
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
8680
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse 2.16.2
8781
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
8882
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/
@@ -109,8 +103,6 @@ blocks:
109103
- name: Build
110104
commands:
111105
- sem-version python 3.11
112-
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
113-
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
114106
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
115107
- tar -czf wheelhouse-macOS-${ARCH}-py313.tgz wheelhouse
116108
- artifact push workflow wheelhouse-macOS-${ARCH}-py313.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313.tgz/

tools/wheels/build-wheels.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ $this_dir/install-librdkafka.sh $librdkafka_version dest
5353

5454
install_pkgs=cibuildwheel==$cibuildwheel_version
5555

56+
# Ensure we have pip installed if using uv
57+
uv pip install pip || true
58+
5659
python3 -m pip install ${PIP_INSTALL_OPTS} $install_pkgs ||
5760
pip3 install ${PIP_INSTALL_OPTS} $install_pkgs
5861

0 commit comments

Comments
 (0)