diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 26335e9..8f823dc 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -22,8 +22,7 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: - CIBW_BEFORE_BUILD: python -m pip install numpy cython==3.0.2 - CIBW_SKIP: pp* + CIBW_BEFORE_BUILD: python -m pip install cython==3.0.2 - uses: actions/upload-artifact@v3 with: diff --git a/setup.py b/setup.py index eb4ac26..9a0c5d2 100644 --- a/setup.py +++ b/setup.py @@ -8,13 +8,7 @@ from setuptools import Extension, setup, find_packages from codecs import open from os import path -import sys import pathlib -try: - import numpy as np - np_include=np.get_include() -except ImportError: - np_include=path.join(path.split(sys.executable)[0],"lib","site-packages","numpy","core","include") here = path.abspath(path.dirname(__file__)) @@ -34,8 +28,6 @@ def list_cython_extensions(folder="pylablib"): dep_devio_extra=['nidaqmx','websocket-client'] dep_pyqt5=['pyqt5>=5.9','pyqtgraph'] dep_pyside2=['pyside2','shiboken2','pyqtgraph>0.10'] -include_dirs=[np_include] -include_dirs=[d for d in include_dirs if path.exists(d)] setup( name='pylablib', # name='pylablib-lightweight', @@ -81,5 +73,4 @@ def list_cython_extensions(folder="pylablib"): # 'gui-pyqt5':dep_pyqt5, # 'gui-pyside2':dep_pyside2, # } - include_dirs=[np_include], ) \ No newline at end of file