diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-01 21:51:27 +0100 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-01 21:51:27 +0100 |
| commit | addb98931555723032bda475f93a2a2aa395ef31 (patch) | |
| tree | 4d32f4dd921abe281867551ef4845cf5bdc88424 | |
| parent | 0d688c047fa27b52bc71fb1dc24b30ef8814e1cc (diff) | |
| parent | e302e04376974dc49c8379231817ba5e8cc8ba2b (diff) | |
| download | python-setuptools-git-addb98931555723032bda475f93a2a2aa395ef31.tar.gz | |
Merged in davidoff/setuptools (pull request #56)
Script files to be copied in the develop command should be open in binary mode. Fixes #210.
| -rwxr-xr-x | setuptools/command/develop.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/develop.py b/setuptools/command/develop.py index 129184ca..0ca797ed 100755 --- a/setuptools/command/develop.py +++ b/setuptools/command/develop.py @@ -162,7 +162,7 @@ class develop(easy_install): for script_name in self.distribution.scripts or []: script_path = os.path.abspath(convert_path(script_name)) script_name = os.path.basename(script_path) - f = open(script_path,'rU') + f = open(script_path,'rb') script_text = f.read() f.close() self.install_script(dist, script_name, script_text, script_path) |
