Skip to content

Commit

Permalink
Switch from distutils to setuptools/sysconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianeboyd committed Jul 24, 2023
1 parent 74a9748 commit a3ba4fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import sys
import contextlib
from setuptools import Extension, setup, find_packages
from distutils.command.build_ext import build_ext
from distutils.sysconfig import get_python_inc
from setuptools.command.build_ext import build_ext
from sysconfig import get_path
from Cython.Build import cythonize


Expand Down Expand Up @@ -76,7 +76,7 @@ def setup_package():
with io.open(os.path.join(root, "README.md"), encoding="utf8") as f:
readme = f.read()

include_dirs = [get_python_inc(plat_specific=True)]
include_dirs = [get_path("include")]

ext_modules = []
for mod_name in MOD_NAMES:
Expand Down

0 comments on commit a3ba4fd

Please sign in to comment.