diff options
| author | ianb <devnull@localhost> | 2005-05-31 17:09:19 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-31 17:09:19 +0000 |
| commit | ddae2fd84beeb66b93806cc1aab06fd0b11fd373 (patch) | |
| tree | efad32eabe722f675a7b1c7079be3d3e419b75c7 /paste | |
| parent | 303ddf956bb2dcb19479dbcf3f38f1e064f840af (diff) | |
| download | paste-ddae2fd84beeb66b93806cc1aab06fd0b11fd373.tar.gz | |
Made setuptools/easy_install optional (lazily import it)
Diffstat (limited to 'paste')
| -rw-r--r-- | paste/pyconfig.py | 4 |
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) |
