Commit 48864fad authored by Jason R. Coombs's avatar Jason R. Coombs

Move import to the top

parent bdab866e
......@@ -28,6 +28,8 @@ import site
import struct
from glob import glob
from distutils import log, dir_util
from distutils.command.build_scripts import first_line_re
import pkg_resources
from setuptools import Command, _dont_write_bytecode
......@@ -1528,8 +1530,6 @@ class PthDistributions(Environment):
def _first_line_re():
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):
return re.compile(first_line_re.pattern.decode())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment