Skip to content

Commit aede5a5

Browse files
committed
setup.py: move to using bundled distutils from setuptools
Since distutils is deprecated in py3.10 and will be removed in py3.12.
1 parent c3b8a61 commit aede5a5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
import os
44
import sys
55
from collections import defaultdict
6-
from distutils import log
7-
from distutils.command import build_clib as dst_build_clib
8-
from distutils.command import install_data as dst_install_data
9-
from distutils.command import install_lib as dst_install_lib
10-
from distutils.util import byte_compile
116
from itertools import chain
127
from textwrap import dedent
138

149
from setuptools import setup
10+
from setuptools._distutils import log
11+
from setuptools._distutils.command import build_clib as dst_build_clib
12+
from setuptools._distutils.command import install_data as dst_install_data
13+
from setuptools._distutils.command import install_lib as dst_install_lib
14+
from setuptools._distutils.util import byte_compile
1515
from snakeoil.dist import distutils_extensions as pkgdist
1616

1717
pkgdist_setup, pkgdist_cmds = pkgdist.setup()

0 commit comments

Comments
 (0)