Skip to content

Commit

Permalink
Replace distutils.dep_util with setuptools.modified (#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Jan 30, 2024
1 parent 452c094 commit 5c09545
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions com/win32com/test/pippo_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ def Method3(self, in1):


def BuildTypelib():
# https://github.com/pypa/setuptools/pull/4069
from distutils.dep_util import newer
if sys.version_info >= (3, 8):
from setuptools.modified import newer
else:
from distutils.dep_util import newer

this_dir = os.path.dirname(__file__)
idl = os.path.abspath(os.path.join(this_dir, "pippo.idl"))
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@
from setuptools.command.install import install
from setuptools.command.install_lib import install_lib

# https://github.com/pypa/setuptools/pull/4069
from distutils.dep_util import newer_group
from distutils.command.install_data import install_data
from distutils.command.install_lib import install_lib
from distutils.core import Extension

if sys.version_info >= (3, 8):
from setuptools.modified import newer_group
else:
from distutils.dep_util import newer_group

# some modules need a static CRT to avoid problems caused by them having a
# manifest.
Expand Down

0 comments on commit 5c09545

Please sign in to comment.