File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22# Script to ensure cbor2 is installed with pure Python implementation
33
4- set -e
4+ set -x
55
66# Check if poetry is available, otherwise use python directly
77if command -v poetry & > /dev/null; then
@@ -27,12 +27,12 @@ sys.exit(1 if using_c_ext else 0)
2727
2828if [ $? -ne 0 ]; then
2929 echo " Reinstalling cbor2 with pure Python implementation..."
30- $PYTHON -m pip uninstall -y cbor2
31- CBOR2_BUILD_C_EXTENSION=0 $PYTHON -m pip install --no-binary cbor2 " cbor2==$CBOR2_VERSION " --force-reinstall
30+ $PYTHON -m pip uninstall -y cbor2 || uv pip uninstall cbor2
31+ CBOR2_BUILD_C_EXTENSION=0 $PYTHON -m pip install --no-binary cbor2 " cbor2==$CBOR2_VERSION " --force-reinstall || CBOR2_BUILD_C_EXTENSION=0 uv pip install --no-binary cbor2 " cbor2== $CBOR2_VERSION " --force-reinstall
3232 echo " Successfully reinstalled cbor2 with pure Python implementation"
3333else
3434 echo " Already using pure Python implementation of cbor2"
3535fi
3636
3737# Clean up
38- rm -f .cbor2_version
38+ rm -f .cbor2_version
You can’t perform that action at this time.
0 commit comments