python-distlib/distlib_unbundle.patch
2021-12-20 14:53:48 +08:00

44 lines
1.3 KiB
Diff

diff --git a/distlib/compat.py b/distlib/compat.py
index e594106..100d695 100644
--- a/distlib/compat.py
+++ b/distlib/compat.py
@@ -22,7 +22,7 @@ if sys.version_info[0] < 3: # pragma: no cover
from types import FileType as file_type
import __builtin__ as builtins
import ConfigParser as configparser
- from ._backport import shutil
+ import shutil
from urlparse import urlparse, urlunparse, urljoin, urlsplit, urlunsplit
from urllib import (urlretrieve, quote as _quote, unquote, url2pathname,
pathname2url, ContentTooShortError, splittype)
@@ -316,7 +316,7 @@ except ImportError: # pragma: no cover
try:
import sysconfig
except ImportError: # pragma: no cover
- from ._backport import sysconfig
+ import sysconfig
try:
callable = callable
diff --git a/setup.py b/setup.py
index 052cae0..cc41754 100644
--- a/setup.py
+++ b/setup.py
@@ -60,13 +60,7 @@ distutils.core.setup(
platforms='any',
packages=[
'distlib',
- 'distlib._backport',
],
- package_data={
- 'distlib._backport': ['sysconfig.cfg'],
- 'distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe',
- 't64-arm.exe', 'w64-arm.exe'],
- },
cmdclass={
'test': TestCommand,
},
--
1.8.3.1