Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit ebdf9b5

Browse files
author
Kenneth Reitz
committed
builds occur in temp directories
1 parent 26235ac commit ebdf9b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bob/models.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,14 @@ def build(self):
111111

112112
self.resolve_deps()
113113

114-
print 'Building formula {}:'.format(self.path)
114+
# Temporary directory where work will be carried out, because of David.
115+
cwd_path = mkdtemp(prefix='bob')
116+
117+
print 'Building formula {} in {}:'.format(self.path, cwd_path)
115118

116119
# Execute the formula script.
117120
cmd = [self.full_path, self.build_path]
118-
p = process(cmd, cwd=self.build_path)
121+
p = process(cmd, cwd=cwd_path)
119122

120123
pipe(p.stdout, sys.stdout, indent=True)
121124
p.wait()

0 commit comments

Comments
 (0)