summaryrefslogtreecommitdiff
path: root/distutils/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-12-23 11:32:40 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-12-23 11:32:40 -0500
commit9867e2e42ad5468793b2e7c3bf69d99d95bcc5e1 (patch)
treed21167efe09b80a752124257af0128972ff87d01 /distutils/command
parente3f53f93af07a0e04bfa7b853b3ba2795b349c90 (diff)
downloadpython-setuptools-git-9867e2e42ad5468793b2e7c3bf69d99d95bcc5e1.tar.gz
Cast value to str and provide a comment explaining why. Ref pypa/distutils#87.
Diffstat (limited to 'distutils/command')
-rw-r--r--distutils/command/install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/distutils/command/install.py b/distutils/command/install.py
index 380564b0..65844927 100644
--- a/distutils/command/install.py
+++ b/distutils/command/install.py
@@ -408,7 +408,8 @@ class install(Command):
'platlibdir': getattr(sys, 'platlibdir', 'lib'),
'implementation_lower': _get_implementation().lower(),
'implementation': _get_implementation(),
- 'platsubdir': sysconfig.get_config_var('platsubdir') or '',
+ # all values must be str; see #86
+ 'platsubdir': str(sysconfig.get_config_var('platsubdir')),
}
if HAS_USER_SITE: