Skip to content

Commit

Permalink
Fix hack for setuptools on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shadchin committed Dec 21, 2023
1 parent 756d6bb commit 1a7798b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/python/runtime_py3/importer.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ class ResourceImporter(object):
def find_spec(self, fullname, path=None, target=None):
# Поддежка переопределения стандартного distutils из пакетом из setuptools
if fullname.startswith("distutils."):
if path and len(path) > 0 and "/setuptools/_distutils" in path[0]:
setuptools_path = f"{path_sep}setuptools{path_sep}_distutils"
if path and len(path) > 0 and setuptools_path in path[0]:
import importlib
import importlib.abc

Expand Down

0 comments on commit 1a7798b

Please sign in to comment.