diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index e119a2d98..139bbbe94 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -31,8 +31,6 @@ blocks: - name: Build commands: - sem-version python 3.11 - - PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1) - - export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH" - PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse 2.16.2 - tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse - artifact push workflow wheelhouse-macOS-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/ @@ -57,8 +55,6 @@ blocks: - name: Build commands: - sem-version python 3.11 - - PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1) - - export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH" - PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse - tar -czf wheelhouse-macOS-${ARCH}-py313.tgz wheelhouse - artifact push workflow wheelhouse-macOS-${ARCH}-py313.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313.tgz/ @@ -81,8 +77,6 @@ blocks: - name: Build commands: - sem-version python 3.11 - - PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1) - - export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH" - PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse 2.16.2 - tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse - artifact push workflow wheelhouse-macOS-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/ @@ -109,8 +103,6 @@ blocks: - name: Build commands: - sem-version python 3.11 - - PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1) - - export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH" - PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse - tar -czf wheelhouse-macOS-${ARCH}-py313.tgz wheelhouse - artifact push workflow wheelhouse-macOS-${ARCH}-py313.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313.tgz/ diff --git a/tools/wheels/build-wheels.sh b/tools/wheels/build-wheels.sh index 96b6e5a6d..d9af094c9 100755 --- a/tools/wheels/build-wheels.sh +++ b/tools/wheels/build-wheels.sh @@ -53,6 +53,9 @@ $this_dir/install-librdkafka.sh $librdkafka_version dest install_pkgs=cibuildwheel==$cibuildwheel_version +# Ensure we have pip installed if using uv +uv pip install pip || true + python3 -m pip install ${PIP_INSTALL_OPTS} $install_pkgs || pip3 install ${PIP_INSTALL_OPTS} $install_pkgs