Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
5748a14f
Commit
5748a14f
authored
15 years ago
by
David Kaprielian
Browse files
Options
Downloads
Patches
Plain Diff
os.putenv doesn't do what we want, replaced with os.environ instead.
parent
12508ac9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/develop.py
+3
-3
3 additions, 3 deletions
indra/develop.py
with
3 additions
and
3 deletions
indra/develop.py
+
3
−
3
View file @
5748a14f
...
@@ -385,7 +385,7 @@ def mk_distcc_hosts(basename, range, num_cpus):
...
@@ -385,7 +385,7 @@ def mk_distcc_hosts(basename, range, num_cpus):
distcc_dir
=
os
.
path
.
join
(
getcwd
(),
'
.distcc
'
)
distcc_dir
=
os
.
path
.
join
(
getcwd
(),
'
.distcc
'
)
if
not
os
.
path
.
exists
(
distcc_dir
):
if
not
os
.
path
.
exists
(
distcc_dir
):
os
.
mkdir
(
distcc_dir
)
os
.
mkdir
(
distcc_dir
)
os
.
putenv
(
'
DISTCC_DIR
'
,
distcc_dir
)
os
.
environ
[
'
DISTCC_DIR
'
]
=
distcc_dir
if
job_count
is
None
:
if
job_count
is
None
:
hosts
,
job_count
=
count_distcc_hosts
()
hosts
,
job_count
=
count_distcc_hosts
()
...
@@ -393,10 +393,10 @@ def mk_distcc_hosts(basename, range, num_cpus):
...
@@ -393,10 +393,10 @@ def mk_distcc_hosts(basename, range, num_cpus):
hostname
=
socket
.
gethostname
()
hostname
=
socket
.
gethostname
()
if
hostname
.
startswith
(
'
station
'
):
if
hostname
.
startswith
(
'
station
'
):
hosts
,
job_count
=
mk_distcc_hosts
(
'
station
'
,
36
,
2
)
hosts
,
job_count
=
mk_distcc_hosts
(
'
station
'
,
36
,
2
)
os
.
putenv
(
'
DISTCC_HOSTS
'
,
hosts
)
os
.
environ
[
'
DISTCC_HOSTS
'
]
=
hosts
if
hostname
.
startswith
(
'
eniac
'
):
if
hostname
.
startswith
(
'
eniac
'
):
hosts
,
job_count
=
mk_distcc_hosts
(
'
eniac
'
,
71
,
2
)
hosts
,
job_count
=
mk_distcc_hosts
(
'
eniac
'
,
71
,
2
)
os
.
putenv
(
'
DISTCC_HOSTS
'
,
hosts
)
os
.
environ
[
'
DISTCC_HOSTS
'
]
=
hosts
if
job_count
>
12
:
if
job_count
>
12
:
job_count
=
12
;
job_count
=
12
;
opts
.
extend
([
'
-j
'
,
str
(
job_count
)])
opts
.
extend
([
'
-j
'
,
str
(
job_count
)])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment