mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +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
|
/_CPack_Packages
|
||||||
/doc/doxyxml
|
/doc/doxyxml
|
||||||
/doc/html
|
/doc/html
|
||||||
|
/doc/virtualenv
|
||||||
/Testing
|
/Testing
|
||||||
/install_manifest.txt
|
/install_manifest.txt
|
||||||
*~
|
*~
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user