Skip to content

Commit

Permalink
Removed numpy header file dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexShkarin committed Oct 7, 2023
1 parent b8229d4 commit c0d9145
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 0 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))

Expand All @@ -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',
Expand Down Expand Up @@ -81,5 +73,4 @@ def list_cython_extensions(folder="pylablib"):
# 'gui-pyqt5':dep_pyqt5,
# 'gui-pyside2':dep_pyside2,
# }
include_dirs=[np_include],
)

0 comments on commit c0d9145

Please sign in to comment.