Arfrever Frehtes Taifersar Arahesis avatar Arfrever Frehtes Taifersar Arahesis committed 97f12f8

Support Python >=3.1.4 and >=3.2.1.
Type of distutils.command.build_scripts.first_line_re has been changed by
the fix for http://bugs.python.org/issue10419.

Comments (0)

Files changed (2)

 =======
 
 ------
+0.6.17
+------
+
+* Support Python >=3.1.4 and >=3.2.1.
+
+------
 0.6.16
 ------
 

setuptools/command/easy_install.py

 def get_script_header(script_text, executable=sys_executable, wininst=False):
     """Create a #! line, getting options (if any) from script_text"""
     from distutils.command.build_scripts import first_line_re
+
+    # first_line_re in Python >=3.1.4 and >=3.2.1 is a bytes pattern.
+    if not isinstance(first_line_re.pattern, str):
+        first_line_re = re.compile(first_line_re.pattern.decode())
+
     first = (script_text+'\n').splitlines()[0]
     match = first_line_re.match(first)
     options = ''
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.