add TMPDIR to env variuables whn building virtualenv
authorymh <ymh.work@gmail.com>
Mon, 17 Dec 2012 02:04:37 +0100
changeset 50 2123324cca5a
parent 49 32f0a519cc7a
child 51 a702384205af
add TMPDIR to env variuables whn building virtualenv
sbin/sync/config.py.tmpl
virtualenv/res/lib/lib_create_env.py
--- a/sbin/sync/config.py.tmpl	Thu Dec 13 17:43:48 2012 +0100
+++ b/sbin/sync/config.py.tmpl	Mon Dec 17 02:04:37 2012 +0100
@@ -5,7 +5,7 @@
 env.web_group = 'www-data'
 env.folders = ['log', 'static/media']
 
-env.repos = {'ldt' : "/Users/ymh/dev/workspace/platform", 'web' :  "/Users/ymh/dev/workspace/platform_web" }
+env.repos = {'ldt': "/Users/ymh/dev/workspace/platform", 'web': "/Users/ymh/dev/workspace/platform_web", 'hashcut': "/Users/ymh/dev/workspace/hashcut" }
 env.base_export_path = "~/tmp"
 env.export_prefix = "platform"
 
--- a/virtualenv/res/lib/lib_create_env.py	Thu Dec 13 17:43:48 2012 +0100
+++ b/virtualenv/res/lib/lib_create_env.py	Mon Dec 17 02:04:37 2012 +0100
@@ -319,6 +319,8 @@
                 method = install_options.get('method', default_install_options['method'])
                 option_str = install_options.get('option_str', default_install_options['option_str'])
                 extra_env = install_options.get('dict_extra_env', default_install_options['dict_extra_env'])
+                if 'TMPDIR' not in extra_env:
+                    extra_env['TMPDIR'] = tmp_dir          
                 #isinstance(lst, (list, tuple))
                 if key not in ignore_packages:
                     if callable(method):