Skip to content

Commit

Permalink
Rely on dependencies instead of vendoring them.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 5, 2024
1 parent 8e8f0cb commit cded66c
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 191 deletions.
58 changes: 0 additions & 58 deletions distutils/_collections.py

This file was deleted.

73 changes: 0 additions & 73 deletions distutils/_functools.py

This file was deleted.

52 changes: 0 additions & 52 deletions distutils/_itertools.py

This file was deleted.

3 changes: 2 additions & 1 deletion distutils/_modified.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import functools
import os.path

from ._functools import splat
from jaraco.functools import splat

from .compat.py39 import zip_strict
from .errors import DistutilsFileError

Expand Down
3 changes: 2 additions & 1 deletion distutils/ccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import types
import warnings

from ._itertools import always_iterable
from more_itertools import always_iterable

from ._log import log
from ._modified import newer_group
from .dir_util import mkpath
Expand Down
5 changes: 3 additions & 2 deletions distutils/command/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from distutils._log import log
from site import USER_BASE, USER_SITE

from .. import _collections
import jaraco.collections

from ..core import Command
from ..debug import DEBUG
from ..errors import DistutilsOptionError, DistutilsPlatformError
Expand Down Expand Up @@ -428,7 +429,7 @@ def finalize_options(self): # noqa: C901
local_vars['userbase'] = self.install_userbase
local_vars['usersite'] = self.install_usersite

self.config_vars = _collections.DictStack([
self.config_vars = jaraco.collections.DictStack([
fw.vars(),
compat_vars,
sysconfig.get_config_vars(),
Expand Down
3 changes: 2 additions & 1 deletion distutils/command/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
from distutils._log import log
from warnings import warn

from .._itertools import always_iterable
from more_itertools import always_iterable

from ..core import PyPIRCCommand


Expand Down
3 changes: 2 additions & 1 deletion distutils/command/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
from urllib.parse import urlparse
from urllib.request import HTTPError, Request, urlopen

from .._itertools import always_iterable
from more_itertools import always_iterable

from ..core import PyPIRCCommand
from ..errors import DistutilsError, DistutilsOptionError
from ..spawn import spawn
Expand Down
3 changes: 2 additions & 1 deletion distutils/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
import sys
import sysconfig

from ._functools import pass_none
from jaraco.functools import pass_none

from .compat import py39
from .errors import DistutilsPlatformError
from .util import is_mingw
Expand Down
3 changes: 2 additions & 1 deletion distutils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import sysconfig
import tempfile

from ._functools import pass_none
from jaraco.functools import pass_none

from ._log import log
from ._modified import newer
from .errors import DistutilsByteCompileError, DistutilsPlatformError
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ requires-python = ">=3.8"
dependencies = [
# Setuptools must require these
"packaging",
"jaraco.functools",
"more_itertools",
"jaraco.collections",
]
dynamic = ["version"]

Expand Down

0 comments on commit cded66c

Please sign in to comment.