Skip to content

Commit

Permalink
Removed references to distutils. Distutils is deprecated as mentioned…
Browse files Browse the repository at this point in the history
  • Loading branch information
TrianecT-Wouter committed Dec 16, 2024
1 parent f7eb141 commit 51e111f
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 @@ -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
Expand Down Expand Up @@ -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 = [
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 51e111f

Please sign in to comment.