--- a/virtualenv/res/lib/lib_create_env.py Thu Jun 14 18:45:26 2012 +0200
+++ b/virtualenv/res/lib/lib_create_env.py Thu Jun 14 21:33:22 2012 +0200
@@ -64,15 +64,17 @@
def get_src_base_path(self, fpath):
return os.path.abspath(os.path.join(self.src_base, fpath)).replace("\\","/")
- def __add_package_def(self, key, setup, url, local):
- self.URLS[key] = {'setup':setup, 'url':url, 'local':self.get_src_base_path(local)}
-
+ def __add_package_def(self, key, dict):
+ self.URLS[key] = dict
+
def __init_url(self, urls):
for key, url_dict in urls.items():
- url = url_dict['url']
- if not url.startswith("http://"):
- url = self.get_src_base_path(url)
- self.__add_package_def(key, url_dict["setup"], url, url_dict["local"])
+ url_dict_copy = url_dict.copy()
+ if not url_dict['url'].startswith("http://"):
+ url_dict_copy['url'] = self.get_src_base_path(url_dict['url'])
+ url_dict_copy['local'] = self.get_src_base_path(url_dict['local'])
+
+ self.__add_package_def(key, url_dict_copy )
def ensure_dir(dir, logger):
if not os.path.exists(dir):
@@ -100,6 +102,7 @@
def install_pylucene(option_str, extra_env, res_source_key, home_dir, lib_dir, tmp_dir, src_dir, res_env, logger, call_subprocess, filter_python_develop):
+ logger.notify("PYLUCENE Custom install")
logger.notify("Get Pylucene from %s " % res_env.URLS['PYLUCENE'][res_source_key])
pylucene_src = os.path.join(src_dir,"pylucene.tar.gz")
if res_source_key == 'local':