Skip to content

Commit

Permalink
numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
sfomel committed Dec 10, 2024
1 parent 19c4c96 commit 0130be5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ jobs:
path: /tmp/circleci-artifacts


python2:
<<: *test-template
docker:
- image: cimg/python:2.7


unittest:
<<: *test-template
steps:
Expand Down
5 changes: 4 additions & 1 deletion api/python/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ if env.get('SWIG') and env.get('NUMPY'):
import numpy
numpy_loc = os.path.split(numpy.__file__)[0]
pythinc.append(os.path.join(numpy_loc,'numarray','numpy'))
pythinc.append(os.path.join(numpy_loc,'_core','include'))
if int(numpy.__version.split(".")[0]) >=2:
pythinc.append(os.path.join(numpy_loc,'_core','include'))
else:
pythinc.append(os.path.join(numpy_loc,'core','include'))
except:
print("\n\n\tPlease install numpy\n\n")
Exit(1)
Expand Down

0 comments on commit 0130be5

Please sign in to comment.