We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e5b02 commit 6ea3599Copy full SHA for 6ea3599
ensure_pure_cbor2.sh
@@ -16,6 +16,7 @@ CBOR2_VERSION=$(cat .cbor2_version)
16
echo "Found cbor2 version: $CBOR2_VERSION"
17
18
echo "Checking cbor2 implementation..."
19
+set +e
20
$PYTHON -c "
21
import cbor2, inspect, sys
22
decoder_path = inspect.getfile(cbor2.CBORDecoder)
@@ -24,6 +25,7 @@ print(f'Implementation path: {decoder_path}')
24
25
print(f'Using C extension: {using_c_ext}')
26
sys.exit(1 if using_c_ext else 0)
27
"
28
+set -e
29
30
if [ $? -ne 0 ]; then
31
echo "Reinstalling cbor2 with pure Python implementation..."
@@ -35,4 +37,4 @@ else
35
37
fi
36
38
39
# Clean up
-rm -f .cbor2_version
40
+rm -f .cbor2_version
0 commit comments