Skip to content

Commit

Permalink
Adding the numpy array import macro to cython.
Browse files Browse the repository at this point in the history
Builds were failing without this line.
RE:natcap#396
  • Loading branch information
phargogh committed Jun 18, 2024
1 parent 0622c75 commit 5328892
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pygeoprocessing/geoprocessing_core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cimport cython
cimport libc.math as cmath
cimport libcpp.algorithm
cimport numpy
numpy.import_array()
from cython.operator cimport dereference as deref
from cython.operator cimport preincrement as inc
from libc.stdio cimport fclose
Expand Down
1 change: 1 addition & 0 deletions src/pygeoprocessing/routing/routing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import time

cimport cython
cimport numpy
numpy.import_array()
from cpython.mem cimport PyMem_Malloc, PyMem_Free
from cython.operator cimport dereference as deref
from cython.operator cimport preincrement as inc
Expand Down
1 change: 1 addition & 0 deletions src/pygeoprocessing/routing/watershed.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import time

cimport cython
cimport numpy
numpy.import_array()
from cpython.mem cimport PyMem_Malloc, PyMem_Free
from cython.operator cimport dereference as deref
from cython.operator cimport preincrement as inc
Expand Down

0 comments on commit 5328892

Please sign in to comment.