summaryrefslogtreecommitdiff
path: root/paste/pyconfig.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-07-13 03:54:29 +0000
committerianb <devnull@localhost>2005-07-13 03:54:29 +0000
commit0ebeb3144c516cf1766d9a7843ce07aebd51cafb (patch)
treee379b32baf3a37df0bcb6658e306aff22d08da5d /paste/pyconfig.py
parent8d0c22867b505ab42d5113a16e9c973c606d3a03 (diff)
downloadpaste-0ebeb3144c516cf1766d9a7843ce07aebd51cafb.tar.gz
Remove install-related commands (that will all just go in the setuptools command lines)
Diffstat (limited to 'paste/pyconfig.py')
-rw-r--r--paste/pyconfig.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/paste/pyconfig.py b/paste/pyconfig.py
index 4356812..e0896d9 100644
--- a/paste/pyconfig.py
+++ b/paste/pyconfig.py
@@ -425,33 +425,3 @@ def make_list(option):
return option
return [s.strip() for s in option.split(',')]
-def make_use_package(conf, relative_to, namespace):
- 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)
- if instdir not in sys.path:
- sys.path.insert(0, instdir)
- if not os.path.exists(instdir):
- os.makedirs(instdir)
- try:
- require(package_spec)
- except DistributionNotFound, e:
- pass
- else:
- return
- if url is None:
- url = namespace['package_urls'][package_spec]
- installer = easy_install.Installer(instdir, zip_ok, multi, tmpdir)
- try:
- downloaded = installer.download(url)
- installer.install_eggs(downloaded)
- finally:
- installer.close()
- require(package_spec)
- return use_package
-
-Config.builtins['use_package'] = make_use_package