Skip to content

Commit

Permalink
Merge pull request #66 from sroet/rework_numpy_include
Browse files Browse the repository at this point in the history
use better way to find numpy include directory
  • Loading branch information
sroet authored Aug 22, 2024
2 parents 43f7f6c + b899072 commit 3a89e44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environments/pytom_full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
dependencies:
- python=3
- ipython
- numpy
- numpy<2
- lxml
- scipy
- boost
Expand Down
2 changes: 1 addition & 1 deletion pytom/pytomc/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def check4specialchars(path):
if include_numpy is None:
try:
import numpy
path = os.path.join(numpy.__path__[0], 'core/include/numpy')
path = numpy.get_include()
includePaths = [path] + includePaths
includeFile,include_numpy = find("ndarrayobject.h",includePaths)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run(self):
author='`FridoF',
author_email='[email protected]',
url='https://github.com/SBC-Utrecht/PyTom.git',
install_requires=['lxml', 'scipy', 'boost', 'numpy'],
install_requires=['lxml', 'scipy', 'boost', 'numpy>=1.18,<2'],
extras_require={
'gpu': ['cupy'],
'gui': ['PyQt5', 'pyqtgraph', 'mrcfile'],
Expand Down

0 comments on commit 3a89e44

Please sign in to comment.