diff --git a/indra/develop.py b/indra/develop.py index f670c66639f33877a44a866a28ed2e03935e3994..1398bca935295f06bd5d92758791eb6ab5913228 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -385,7 +385,7 @@ def mk_distcc_hosts(basename, range, num_cpus): distcc_dir = os.path.join(getcwd(), '.distcc') if not os.path.exists(distcc_dir): os.mkdir(distcc_dir) - os.putenv('DISTCC_DIR', distcc_dir) + os.environ['DISTCC_DIR'] = distcc_dir if job_count is None: hosts, job_count = count_distcc_hosts() @@ -393,10 +393,10 @@ def mk_distcc_hosts(basename, range, num_cpus): hostname = socket.gethostname() if hostname.startswith('station'): hosts, job_count = mk_distcc_hosts('station', 36, 2) - os.putenv('DISTCC_HOSTS', hosts) + os.environ['DISTCC_HOSTS'] = hosts if hostname.startswith('eniac'): hosts, job_count = mk_distcc_hosts('eniac', 71, 2) - os.putenv('DISTCC_HOSTS', hosts) + os.environ['DISTCC_HOSTS'] = hosts if job_count > 12: job_count = 12; opts.extend(['-j', str(job_count)])