diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-23 19:27:24 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-23 19:27:24 -0500 |
commit | 02f472c7ab53f21b82f9fdd8904ce3ecae5289e8 (patch) | |
tree | 6a825e94f465670203782db65a2226c9f02d7e31 /setuptools/_distutils/command | |
parent | 7e33cc7c39420e38b9213e5faef4a06e2d166a32 (diff) | |
parent | a5af364910aed3974d52d10dae7ac4fa3fc80e7b (diff) | |
download | python-setuptools-git-02f472c7ab53f21b82f9fdd8904ce3ecae5289e8.tar.gz |
Merge https://github.com/pypa/distutils into feature/distutils-a5af364910
Diffstat (limited to 'setuptools/_distutils/command')
-rw-r--r-- | setuptools/_distutils/command/install.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/_distutils/command/install.py b/setuptools/_distutils/command/install.py index 65844927..cdcc0528 100644 --- a/setuptools/_distutils/command/install.py +++ b/setuptools/_distutils/command/install.py @@ -408,8 +408,7 @@ class install(Command): 'platlibdir': getattr(sys, 'platlibdir', 'lib'), 'implementation_lower': _get_implementation().lower(), 'implementation': _get_implementation(), - # all values must be str; see #86 - 'platsubdir': str(sysconfig.get_config_var('platsubdir')), + 'platsubdir': sysconfig.get_config_var('platsubdir'), } if HAS_USER_SITE: @@ -650,7 +649,7 @@ class install(Command): return home = convert_path(os.path.expanduser("~")) for name, path in self.config_vars.items(): - if path.startswith(home) and not os.path.isdir(path): + if str(path).startswith(home) and not os.path.isdir(path): self.debug_print("os.makedirs('%s', 0o700)" % path) os.makedirs(path, 0o700) |