summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-06-01 21:51:27 +0100
committerJason R. Coombs <jaraco@jaraco.com>2014-06-01 21:51:27 +0100
commitaddb98931555723032bda475f93a2a2aa395ef31 (patch)
tree4d32f4dd921abe281867551ef4845cf5bdc88424
parent0d688c047fa27b52bc71fb1dc24b30ef8814e1cc (diff)
parente302e04376974dc49c8379231817ba5e8cc8ba2b (diff)
downloadpython-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-xsetuptools/command/develop.py2
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)