diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-18 08:38:56 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-18 08:38:56 -0500 |
commit | 53e5575e11a35aaf761da56aa6728cdcd7c04ec0 (patch) | |
tree | 71a4ba37cda11f3a8bc5ba8ccf993b2bb6c31dd4 /setuptools/command/easy_install.py | |
parent | 127dcab577c72c85dc27dfb29701b67aaa41dd68 (diff) | |
download | external_python_setuptools-53e5575e11a35aaf761da56aa6728cdcd7c04ec0.tar.gz external_python_setuptools-53e5575e11a35aaf761da56aa6728cdcd7c04ec0.tar.bz2 external_python_setuptools-53e5575e11a35aaf761da56aa6728cdcd7c04ec0.zip |
When invoking rmtree, ensure the parameter is unicode to avoid errors when the tree contains Unicode filenames. Fixes #704.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 03dd6768..7d982d89 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -666,6 +666,9 @@ class easy_install(Command): finally: if os.path.exists(tmpdir): + # workaround for http://bugs.python.org/issue24672 + if six.PY2: + tmpdir = six.u(tmpdir) rmtree(tmpdir) def install_item(self, spec, download, tmpdir, deps, install_needed=False): |