Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f77946

Browse filesBrowse files
Apply suggestions from code review
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 04346fd commit 8f77946
Copy full SHA for 8f77946

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed

‎Lib/distutils/command/install.py

Copy file name to clipboardExpand all lines: Lib/distutils/command/install.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
HAS_USER_SITE = (USER_SITE is not None)
2424

2525
# The keys to an installation scheme; if any new types of files are to be
26-
# installed, be sure to add an entry to every installation scheme above,
27-
# and to SCHEME_KEYS here.
26+
# installed, be sure to add an entry to every scheme in
27+
# sysconfig._INSTALL_SCHEMES, and to SCHEME_KEYS here.
2828
SCHEME_KEYS = ('purelib', 'platlib', 'headers', 'scripts', 'data')
2929

3030
# The following code provides backward-compatible INSTALL_SCHEMES
3131
# while making the sysconfig module the single point of truth.
3232
# This makes it easier for OS distributions where they need to
33-
# alter locations for packages installations on single place.
34-
# This module is depracated anyway (PEP 632) so if anything
35-
# doesn't work for you, take a look at sysconfig.
33+
# alter locations for packages installations in a single place.
34+
# Note that this module is depracated (PEP 632); all consumers
35+
# of this information should switch to using sysconfig directly.
3636
INSTALL_SCHEMES = {"unix_prefix": {}, "unix_home": {}, "nt": {}}
3737

3838
# Copy from sysconfig._INSTALL_SCHEMES
@@ -58,8 +58,8 @@
5858
value = value.replace("/lib/", "/$platlibdir/")
5959
INSTALL_SCHEMES[main_key][key] = value
6060

61-
# The following part of INSTALL_SCHEMES has different definition
62-
# that the one in sysconfig but because both depends on site module
61+
# The following part of INSTALL_SCHEMES has a different definition
62+
# than the one in sysconfig, but because both depend on the site module,
6363
# the outcomes should be the same.
6464
if HAS_USER_SITE:
6565
INSTALL_SCHEMES['nt_user'] = {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.