Skip to content

Commit

Permalink
we can import numpy with pep517/518
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 25, 2024
1 parent a4b654b commit ebfd69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import shutil
import sys

import pkg_resources
import numpy
from setuptools import Extension, setup
from setuptools.command.build_ext import build_ext as _build_ext

Expand All @@ -21,7 +21,7 @@ def read(*parts):
class build_ext(_build_ext):
# Extension builder from pandas without the cython stuff
def build_extensions(self):
numpy_incl = pkg_resources.resource_filename("numpy", "core/include")
numpy_incl = numpy.get_include()

for ext in self.extensions:
if hasattr(ext, "include_dirs") and not numpy_incl in ext.include_dirs:
Expand Down

0 comments on commit ebfd69c

Please sign in to comment.