|
|
6d8727 |
diff --git a/doc/build.py b/doc/build.py
|
|
|
6d8727 |
index 73426713..af3313d1 100755
|
|
|
6d8727 |
--- a/doc/build.py
|
|
|
6d8727 |
+++ b/doc/build.py
|
|
|
6d8727 |
@@ -7,16 +7,6 @@ from subprocess import check_call, check_output, CalledProcessError, Popen, PIPE
|
|
|
6d8727 |
|
|
|
6d8727 |
versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.0', '5.2.0', '5.2.1', '5.3.0', '6.0.0', '6.1.0', '6.1.1', '6.1.2', '6.2.0', '6.2.1']
|
|
|
6d8727 |
|
|
|
6d8727 |
-def create_build_env(dirname='virtualenv'):
|
|
|
6d8727 |
- # Create virtualenv.
|
|
|
6d8727 |
- if not os.path.exists(dirname):
|
|
|
6d8727 |
- check_call(['virtualenv', dirname])
|
|
|
6d8727 |
- import sysconfig
|
|
|
6d8727 |
- scripts_dir = os.path.basename(sysconfig.get_path('scripts'))
|
|
|
6d8727 |
- activate_this_file = os.path.join(dirname, scripts_dir, 'activate_this.py')
|
|
|
6d8727 |
- with open(activate_this_file) as f:
|
|
|
6d8727 |
- exec(f.read(), dict(__file__=activate_this_file))
|
|
|
6d8727 |
-
|
|
|
6d8727 |
def build_docs(version='dev', **kwargs):
|
|
|
6d8727 |
doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))
|
|
|
6d8727 |
work_dir = kwargs.get('work_dir', '.')
|
|
|
6d8727 |
@@ -78,5 +68,4 @@ def build_docs(version='dev', **kwargs):
|
|
|
6d8727 |
return html_dir
|
|
|
6d8727 |
|
|
|
6d8727 |
if __name__ == '__main__':
|
|
|
6d8727 |
- create_build_env()
|
|
|
6d8727 |
build_docs(sys.argv[1])
|
|
|
6d8727 |
--
|
|
|
6d8727 |
2.26.2
|
|
|
6d8727 |
|