File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ def pypi_link(pkg_filename):
38
38
return '/' .join (parts )
39
39
40
40
41
- _vendored_distutils_path = Path (here ) / "setuptools" / "_distutils"
41
+ vendored_distutils_path = Path (here ) / "setuptools" / "_distutils"
42
42
43
43
44
44
def generate_distutils_stubs (destination : Path ) -> None :
45
- for path in _vendored_distutils_path .rglob ("*.py" ):
46
- relative_path = path .relative_to (_vendored_distutils_path )
45
+ for path in vendored_distutils_path .rglob ("*.py" ):
46
+ relative_path = path .relative_to (vendored_distutils_path )
47
47
if relative_path .parts [0 ] == "tests" :
48
48
continue
49
49
stub_path = (destination / relative_path ).with_suffix (".pyi" )
50
- stub_path .parent .mkdir (exist_ok = True )
50
+ stub_path .parent .mkdir (parents = True , exist_ok = True )
51
51
module = "setuptools._distutils." + str (relative_path .with_suffix ("" )).replace (
52
52
os .sep , "."
53
53
).removesuffix (".__init__" )
You can’t perform that action at this time.
0 commit comments