File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 6565 path : /tmp/circleci-artifacts
6666
6767
68- python2 :
69- << : *test-template
70- docker :
71- - image : cimg/python:2.7
72-
73-
7468 unittest :
7569 << : *test-template
7670 steps :
Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ if env.get('SWIG') and env.get('NUMPY'):
4747 import numpy
4848 numpy_loc = os .path .split (numpy .__file__ )[0 ]
4949 pythinc .append (os .path .join (numpy_loc ,'numarray' ,'numpy' ))
50- pythinc .append (os .path .join (numpy_loc ,'_core' ,'include' ))
50+ if int (numpy .__version .split ("." )[0 ]) >= 2 :
51+ pythinc .append (os .path .join (numpy_loc ,'_core' ,'include' ))
52+ else :
53+ pythinc .append (os .path .join (numpy_loc ,'core' ,'include' ))
5154 except :
5255 print ("\n \n \t Please install numpy\n \n " )
5356 Exit (1 )
You can’t perform that action at this time.
0 commit comments