File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 12
12
from os .path import join as pjoin
13
13
from pathlib import Path
14
14
import io
15
+ import logging
15
16
import os
16
17
import functools
17
18
import pipes
27
28
# shim deprecated to allow setuptools to find the version string in this file
28
29
deprecated = lambda * args , ** kwargs : lambda * args , ** kwargs : None
29
30
30
- # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
31
- # update it when the contents of directories change.
32
31
if os .path .exists ('MANIFEST' ): os .remove ('MANIFEST' )
33
32
34
33
from packaging .version import VERSION_PATTERN
35
34
from setuptools import Command
36
35
from setuptools .command .build_py import build_py
37
36
from setuptools .config import StaticModule
38
37
39
- # Note: distutils must be imported after setuptools
40
- from distutils import log
41
38
42
39
from setuptools .command .sdist import sdist
43
40
from setuptools .command .develop import develop
@@ -65,6 +62,8 @@ def list2cmdline(cmd_list):
65
62
VERSION_REGEX = re .compile (r"^\s*" + VERSION_PATTERN + r"\s*$" , re .VERBOSE | re .IGNORECASE )
66
63
67
64
65
+ log = logging .getLogger (__name__ )
66
+
68
67
if "--skip-npm" in sys .argv :
69
68
print ("Skipping npm install as requested." )
70
69
skip_npm = True
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ python_requires = >=3.7
29
29
install_requires =
30
30
packaging
31
31
tomlkit
32
- setuptools>=46.4 .0
32
+ setuptools>=60.2 .0
33
33
wheel
34
34
deprecation
35
35
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def mock_dist():
13
13
))
14
14
15
15
def run_command (cmd ):
16
- """Run a distutils/ setuptools Command """
16
+ """Run a setuptools Command """
17
17
dist = mock_dist ()
18
18
instance = cmd (dist )
19
19
instance .initialize_options ()
You can’t perform that action at this time.
0 commit comments