Create and keep virtualenv in the current (build) directory

This commit is contained in:
vitaut 2015-05-18 08:09:26 -07:00
parent 0e28acdd05
commit 4c1a0303aa
2 changed files with 2 additions and 7 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
/_CPack_Packages /_CPack_Packages
/doc/doxyxml /doc/doxyxml
/doc/html /doc/html
/doc/virtualenv
/Testing /Testing
/install_manifest.txt /install_manifest.txt
*~ *~

View File

@ -53,11 +53,5 @@ def build_docs(workdir, travis):
returncode = 1 returncode = 1
travis = 'TRAVIS' in os.environ travis = 'TRAVIS' in os.environ
workdir = tempfile.mkdtemp() returncode = build_docs('', travis=travis)
try:
returncode = build_docs(workdir, travis=travis)
finally:
# Don't remove workdir on Travis because the VM is discarded anyway.
if not travis:
shutil.rmtree(workdir)
exit(returncode) exit(returncode)