From 4c1a0303aaf51e5ab2b0a77bc010b7681ab4876c Mon Sep 17 00:00:00 2001 From: vitaut Date: Mon, 18 May 2015 08:09:26 -0700 Subject: [PATCH] Create and keep virtualenv in the current (build) directory --- .gitignore | 1 + doc/build.py | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 00792726..600a6424 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /_CPack_Packages /doc/doxyxml /doc/html +/doc/virtualenv /Testing /install_manifest.txt *~ diff --git a/doc/build.py b/doc/build.py index dca113db..c2675923 100755 --- a/doc/build.py +++ b/doc/build.py @@ -53,11 +53,5 @@ def build_docs(workdir, travis): returncode = 1 travis = 'TRAVIS' in os.environ -workdir = tempfile.mkdtemp() -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) +returncode = build_docs('', travis=travis) exit(returncode)