summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-05-31 17:09:19 +0000
committerianb <devnull@localhost>2005-05-31 17:09:19 +0000
commitddae2fd84beeb66b93806cc1aab06fd0b11fd373 (patch)
treeefad32eabe722f675a7b1c7079be3d3e419b75c7 /paste
parent303ddf956bb2dcb19479dbcf3f38f1e064f840af (diff)
downloadpaste-ddae2fd84beeb66b93806cc1aab06fd0b11fd373.tar.gz
Made setuptools/easy_install optional (lazily import it)
Diffstat (limited to 'paste')
-rw-r--r--paste/pyconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/pyconfig.py b/paste/pyconfig.py
index d181e3c..6bde38d 100644
--- a/paste/pyconfig.py
+++ b/paste/pyconfig.py
@@ -426,10 +426,10 @@ def make_list(option):
return [s.strip() for s in option.split(',')]
def make_use_package(conf, relative_to, namespace):
- import easy_install
- from pkg_resources import DistributionNotFound, require
def use_package(package_spec, url=None, instdir=None, zip_ok=False,
multi=None, tmpdir=None):
+ import easy_install
+ from pkg_resources import DistributionNotFound, require
if instdir is None:
instdir = namespace.get('app_packages', 'app-packages')
instdir = os.path.join(os.path.dirname(relative_to), instdir)