From 51e111f800a4aee068d73be1915fb782205324ae Mon Sep 17 00:00:00 2001 From: Wouter Potters Date: Mon, 16 Dec 2024 22:25:38 +0100 Subject: [PATCH] Removed references to distutils. Distutils is deprecated as mentioned in https://github.com/holgern/pyedflib/issues/267 --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index b308fd5..2753d29 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os import subprocess import sys -from distutils.sysconfig import get_python_inc +import sysconfig from functools import partial import setuptools @@ -219,7 +219,7 @@ def write_version_py(filename='pyedflib/version.py'): # C files must be built once only for coverage to work c_lib = ('c_edf',{'sources': sources, 'depends': headers, - 'include_dirs': [make_ext_path("c"), get_python_inc()], + 'include_dirs': [make_ext_path("c"), sysconfig.get_path('include')], 'macros': c_macros,}) ext_modules = [ @@ -270,7 +270,7 @@ def install_for_development(self): setuptools.bootstrap_install_from = None # create an .egg-link in the installation dir, pointing to our egg - from distutils import log + from setuptools import log log.info("Creating %s (link to %s)", self.egg_link, self.egg_base) if not self.dry_run: with open(self.egg_link, "w") as f: