summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-04-15 13:55:23 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-04-15 13:55:23 -0400
commit79257540df94ffb3ea7ed5b7e5d185b0432c3b44 (patch)
treeb2e88e03cca4cc30e30356c7c0008b1cd4c5dc3d /setuptools/command/easy_install.py
parent214208228150874c5507b1c51922a06393542023 (diff)
downloadpython-setuptools-bitbucket-79257540df94ffb3ea7ed5b7e5d185b0432c3b44.tar.gz
Move import to the top
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index d947e548..5206698f 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -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())