mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 03:17:53 +00:00
Create and keep virtualenv in the current (build) directory
This commit is contained in:
parent
0e28acdd05
commit
4c1a0303aa
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
/_CPack_Packages
|
||||
/doc/doxyxml
|
||||
/doc/html
|
||||
/doc/virtualenv
|
||||
/Testing
|
||||
/install_manifest.txt
|
||||
*~
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user