Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions distutils/command/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ def initialize_options(self) -> None:
# supplied by the user, they are filled in using the installation
# scheme implied by prefix/exec-prefix/home and the contents of
# that installation scheme.
self.install_purelib = None # for pure module distributions
self.install_platlib = None # non-pure (dists w/ extensions)
self.install_headers = None # for C/C++ headers
self.install_purelib: str | None = None # for pure module distributions
self.install_platlib: str | None = None # non-pure (dists w/ extensions)
self.install_headers: str | None = None # for C/C++ headers
self.install_lib: str | None = None # set to either purelib or platlib
self.install_scripts = None
self.install_data = None
self.install_scripts: str | None = None
self.install_data: str | None = None
self.install_userbase = USER_BASE
self.install_usersite = USER_SITE

Expand Down
11 changes: 6 additions & 5 deletions distutils/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

# type-only import because of mutual dependence between these modules
from .cmd import Command
from .extension import Extension

_CommandT = TypeVar("_CommandT", bound="Command")
_OptionsList: TypeAlias = list[
Expand Down Expand Up @@ -220,18 +221,18 @@ def __init__(self, attrs: MutableMapping[str, Any] | None = None) -> None: # no
# These options are really the business of various commands, rather
# than of the Distribution itself. We provide aliases for them in
# Distribution as a convenience to the developer.
self.packages = None
self.packages: list[str] | None = None
self.package_data: dict[str, list[str]] = {}
self.package_dir = None
self.py_modules = None
self.package_dir: dict[str, str] | None = None
self.py_modules: list[str] | None = None
self.libraries = None
self.headers = None
self.ext_modules = None
self.ext_modules: list[Extension] | None = None
self.ext_package = None
self.include_dirs = None
self.extra_path = None
self.scripts = None
self.data_files = None
self.data_files: list[str | tuple] | None = None
self.password = ''

# And now initialize bookkeeping stuff that can't be supplied by
Expand Down
Loading