Skip to content

Commit 18f47e8

Browse files
Merge pull request #7 from btclib-org/dev
Add support for pypy on macos
2 parents ad3c356 + a34dc17 commit 18f47e8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
run: |
3434
python setup.py sdist
3535
python setup.py bdist_wheel --plat-name=manylinux2010_x86_64 --py-limited-api=cp36
36+
BTCLIB_LIBSECP256K1_DYNAMIC=true python setup.py bdist_wheel --plat-name=manylinux2010_x86_64 --py-limited-api=cp36
3637
# python setup.py bdist_wheel --plat-name=manylinux2010_x86_64
3738

3839
- uses: actions/upload-artifact@v3
@@ -64,8 +65,9 @@ jobs:
6465
run: bash ./.github/scripts/install-macos-deps.sh
6566

6667
- name: Build
67-
run:
68+
run: |
6869
python setup.py bdist_wheel --py-limited-api=cp36
70+
BTCLIB_LIBSECP256K1_DYNAMIC=true python setup.py bdist_wheel --py-limited-api=cp36
6971
# python setup.py bdist_wheel --plat-name=macosx_11_x86_64
7072
7173
- uses: actions/upload-artifact@v3

.github/workflows/test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
20+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.7", "pypy-3.8"]
2121
env:
2222
PYTHON_VERSION: ${{ matrix.python-version }}
2323
OS_NAME: ${{ matrix.os }}
@@ -30,10 +30,6 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232

33-
- name: Install macos dependencies
34-
if: startsWith(matrix.os, 'macos')
35-
run: bash ./.github/scripts/install-macos-deps.sh
36-
3733
- name: Upgrade Python packaging tools
3834
run: pip install --upgrade pip setuptools wheel
3935

build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
windows = "--plat-name=win_amd64" in sys.argv or platform.system() == "Windows"
2424
static = bool(not windows and pathlib.Path(".git").exists())
25+
static = static and os.environ.get("BTCLIB_LIBSECP256K1_DYNAMIC", "false") != "true"
2526
secp256k1_dir = pathlib.Path(__file__).parent.resolve() / "secp256k1"
2627
libs_dir = secp256k1_dir / ".libs"
2728
include_dir = secp256k1_dir / "include"

0 commit comments

Comments
 (0)