diff options
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/distutils/command/install.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib-python/2.7/distutils/command/install.py b/lib-python/2.7/distutils/command/install.py index 0dddbc56cb..8e0116abb1 100644 --- a/lib-python/2.7/distutils/command/install.py +++ b/lib-python/2.7/distutils/command/install.py @@ -501,6 +501,11 @@ class install (Command): if os.name == 'posix' or os.name == 'nt': val = os.path.expanduser(val) val = subst_vars(val, self.config_vars) + # install_headers can end with a '/' if $dist_name is '' + # see issue 3140, and the comment in ./utils.py that CPython + # apparently never uses $dist_name + if val[-1] == '/': + val = val[:-1] setattr(self, attr, val) |