Skip to content

Commit

Permalink
Fix install w/ numpy >= 1.26
Browse files Browse the repository at this point in the history
Deprecation of numpy.distutils
  • Loading branch information
milesgranger committed Dec 18, 2023
1 parent e44b87b commit 18d222f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import os
import sys

import numpy.distutils.misc_util as np_misc
import numpy as np
from Cython import Tempita as tempita
from Cython.Build import cythonize
from setuptools import setup
from setuptools.extension import Extension

import versioneer

compile_args = np_misc.get_info("npymath")
compile_args["include_dirs"].append("crick/klib")
compile_args = dict(
library_dirs=[
os.path.abspath(os.path.join(np.get_include(), "..", "lib")),
],
include_dirs=[np.get_include(), "crick/klib"],
libraries=["npymath"],
)

if "--debug" in sys.argv:
sys.argv.remove("--debug")
Expand Down

0 comments on commit 18d222f

Please sign in to comment.