Skip to content

Commit

Permalink
Newer numpys accepted.
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniekmateusz committed Aug 13, 2023
1 parent 2354fc3 commit 8ae1827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ channels:
- defaults

dependencies:
- conda-forge::ambertools >=20.0
- conda-forge::ambertools >=21.0
- ties_md
- numpy <=1.23.5
- numpy
- cython
- setuptools
- matplotlib
Expand Down
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
from distutils.extension import Extension
from pathlib import Path

try:
# get the information about numpy header files
import numpy
compile_include = [numpy.get_include()]
except ModuleNotFoundError:
compile_include = []
import numpy

# handle cython modules: pyqcprot module for the rotation matrix
try:
Expand All @@ -21,7 +16,7 @@
print (f'use_cython: {use_cython}')

ext_modules = [Extension("ties/pyqcprot_ext/pyqcprot", [f"ties/pyqcprot_ext/pyqcprot.{'pyx' if use_cython else 'c'}"],
include_dirs=compile_include,
include_dirs=[numpy.get_include()],
extra_compile_args=["-O3","-ffast-math"])]

setup(
Expand Down

0 comments on commit 8ae1827

Please sign in to comment.