Skip to content

Commit

Permalink
Modify import from setuptools.modified
Browse files Browse the repository at this point in the history
  • Loading branch information
komoto48g committed Sep 10, 2024
1 parent 3af6625 commit 0da5a0b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@
except ImportError:
from buildtools.backports.shutil_which import which

try:
from setuptools.modified import newer, newer_group
except ImportError:
from distutils.dep_util import newer, newer_group

from setuptools.modified import newer, newer_group
from buildtools.config import Config, msg, opj, posixjoin, loadETG, etg2sip, findCmd, \
phoenixDir, wxDir, copyIfNewer, copyFile, \
macSetLoaderNames, \
Expand Down
5 changes: 4 additions & 1 deletion buildtools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@

from distutils.file_util import copy_file
from distutils.dir_util import mkpath
from setuptools.modified import newer
try:
from setuptools.modified import newer
except ImportError:
from distutils.dep_util import newer

import distutils.sysconfig

Expand Down
6 changes: 5 additions & 1 deletion buildtools/distutils_hacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
import distutils.command.install_headers
import distutils.command.clean

from setuptools.modified import newer, newer_group
try:
from setuptools.modified import newer, newer_group
except ImportError:
from distutils.dep_util import newer, newer_group

from distutils import log

from .config import Config, posixjoin, loadETG, etg2sip
Expand Down

0 comments on commit 0da5a0b

Please sign in to comment.