Skip to content

Commit

Permalink
[xcompat] fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrewe committed Feb 18, 2024
1 parent 7d3d5af commit 3878330
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nixio/test/xcompat/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import platform
from glob import glob

import distutils.sysconfig
from distutils import ccompiler
from distutils.errors import CompileError, LinkError
import sysconfig
from setuptools._distutils.ccompiler import new_compiler
from setuptools._distutils.errors import CompileError, LinkError


WINDOWS = False
Expand All @@ -25,9 +25,9 @@ def ccomp(filenames, destination,
library_dirs=None, include_dirs=None,
libraries=None, compile_args=None,
runtime_lib_dirs=None):
compiler = ccompiler.new_compiler()
compiler = new_compiler()

distutils.sysconfig.customize_compiler(compiler)
sysconfig.customize_compiler(compiler)
if library_dirs:
compiler.set_library_dirs(library_dirs)
if include_dirs:
Expand Down

0 comments on commit 3878330

Please sign in to comment.