mirror of
https://github.com/kennethreitz/bob-builder-1.git
synced 2026-06-05 23:10:17 +00:00
builds occur in temp directories
This commit is contained in:
+5
-2
@@ -111,11 +111,14 @@ class Formula(object):
|
||||
|
||||
self.resolve_deps()
|
||||
|
||||
print 'Building formula {}:'.format(self.path)
|
||||
# Temporary directory where work will be carried out, because of David.
|
||||
cwd_path = mkdtemp(prefix='bob')
|
||||
|
||||
print 'Building formula {} in {}:'.format(self.path, cwd_path)
|
||||
|
||||
# Execute the formula script.
|
||||
cmd = [self.full_path, self.build_path]
|
||||
p = process(cmd, cwd=self.build_path)
|
||||
p = process(cmd, cwd=cwd_path)
|
||||
|
||||
pipe(p.stdout, sys.stdout, indent=True)
|
||||
p.wait()
|
||||
|
||||
Reference in New Issue
Block a user