Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit e186ab4

Browse files
authored
fix numpy size error (#62)
1 parent cf41f35 commit e186ab4

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.github/workflows/github-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Build wheels
3333
uses: joerick/cibuildwheel@v1.10.0
34+
env:
35+
CIBW_SKIP: cp39-macosx_x86_64
3436

3537
- uses: actions/upload-artifact@v2
3638
with:

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
recursive-include spokestack/extensions/portaudio
1+
recursive-include spokestack/extensions/portaudio/ *

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "numpy", "Cython"]
2+
requires = ["setuptools", "wheel", "numpy==1.19.2", "Cython>=0.29.22"]
3+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
try:
1010
from numpy import get_include
1111
except ImportError:
12-
subprocess.check_call([sys.executable, "-m", "pip", "install", "numpy"])
12+
subprocess.check_call([sys.executable, "-m", "pip", "install", "numpy==1.19.2"])
1313
from numpy import get_include
1414

1515
try:
1616
from Cython.Build import cythonize
1717
except ImportError:
18-
subprocess.check_call([sys.executable, "-m", "pip", "install", "Cython"])
18+
subprocess.check_call([sys.executable, "-m", "pip", "install", "Cython==0.29.22"])
1919
from Cython.Build import cythonize
2020

2121

@@ -124,10 +124,10 @@ def run(self) -> None:
124124
"Operating System :: OS Independent",
125125
],
126126
python_requires=">=3.8",
127-
setup_requires=["setuptools", "wheel", "numpy", "Cython"],
127+
setup_requires=["setuptools", "wheel", "numpy==1.19.2", "Cython>=0.29.22"],
128128
install_requires=[
129-
"numpy",
130-
"Cython",
129+
"numpy==1.19.2",
130+
"Cython>=0.29.22",
131131
"websocket_client",
132132
"tokenizers",
133133
"requests",

0 commit comments

Comments
 (0)