Skip to content

Commit 06e0335

Browse files
hohPsycojoker
authored andcommitted
Fix: Pythom 3.12 fails setup libsecp256k1
When "using bundled libsecp256k1", the setup using `/tmp/venv/bin/hatch run testing:test` fails to proceed on Python 3.12. That library `secp256k1` has been unmaintained for more than 2 years now (0.14.0, Nov 6, 2021), and seems to not support Python 3.12. The error in the logs: ``` File "/tmp/pip-build-env-ye8d6ort/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 862, in get_command_obj cmd_obj = self.command_obj[command] = klass(self) ^^^^^^^^^^^ TypeError: 'NoneType' object is not callable [end of output] ``` See failing CI run: https://github.com/aleph-im/aleph-sdk-python/actions/runs/9613634583/job/26516767722
1 parent a7a923e commit 06e0335

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pytest.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ on:
1414
jobs:
1515
build:
1616
strategy:
17+
fail-fast: false
1718
matrix:
18-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
19+
python-version: [ "3.9", "3.10", "3.11" ]
20+
# An issue with secp256k1 prevents Python 3.12 from working
21+
# See https://github.com/baking-bad/pytezos/issues/370
1922
runs-on: ubuntu-latest
2023

2124
steps:

0 commit comments

Comments
 (0)