Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit bdaa06a

Browse files
committed
Building from a tag means that everything should execute from the cloned directory
1 parent bec8db3 commit bdaa06a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

codingtools/make_release.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,18 @@ def recursive_write(zip_object, dir_to_add):
217217
def main(options):
218218
print >>sys.stdout, "Creating BuildAMation version %s" % options.version
219219
sys.stdout.flush()
220-
cwd = os.getcwd()
220+
restore_cwd = cwd = os.getcwd()
221221
if options.tag:
222222
cloningDir = os.path.join(tempfile.mkdtemp(), "BuildAMation-%s" % options.version)
223223
os.makedirs(cloningDir)
224224
clone_buildamation(cloningDir, options)
225225
os.chdir(cloningDir)
226226
remove_unnecessary_files_from_clone()
227227
update_version_numbers_in_files(options)
228+
cwd = cloningDir
228229
try:
230+
print >>sys.stdout, "Executing build steps in %s" % cwd
231+
sys.stdout.flush()
229232
build_bam(cwd, coveritypath=options.coveritypath)
230233
test_bam(cwd)
231234
build_documentation(cwd, options.doxygenpath)
@@ -235,7 +238,7 @@ def main(options):
235238
make_tar_docs_distribution(options)
236239
make_zip_docs_distribution(options)
237240
finally:
238-
os.chdir(cwd)
241+
os.chdir(restore_cwd)
239242

240243

241244
if __name__ == "__main__":

0 commit comments

Comments
 (0)