File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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):
3838 return '/' .join (parts )
3939
4040
41- _vendored_distutils_path = Path (here ) / "setuptools" / "_distutils"
41+ vendored_distutils_path = Path (here ) / "setuptools" / "_distutils"
4242
4343
4444def 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 )
4747 if relative_path .parts [0 ] == "tests" :
4848 continue
4949 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 )
5151 module = "setuptools._distutils." + str (relative_path .with_suffix ("" )).replace (
5252 os .sep , "."
5353 ).removesuffix (".__init__" )
You can’t perform that action at this time.
0 commit comments