Skip to content

Commit 4fec90d

Browse files
committed
chore: avoid using deprecated setuptools helpers
1 parent 4abc1cc commit 4fec90d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88
from distutils.command.build import build
99
from distutils.core import Command
10-
from setuptools import modified
10+
from distutils.dep_util import newer
1111
from glob import glob
1212
from itertools import chain
1313

@@ -32,7 +32,7 @@ def finalize_options(self):
3232
def run(self):
3333
for name in chain.from_iterable(glob(mask) for mask in LOCALE_MASKS):
3434
output = os.path.splitext(name)[0] + ".mo"
35-
if not modified.newer(name, output):
35+
if not newer(name, output):
3636
continue
3737
print(f"compiling {name} -> {output}")
3838
with open(name, "rb") as pofile, open(output, "wb") as mofile:

0 commit comments

Comments
 (0)