File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
4
4
# You can set these variables from the command line.
5
- BINDIR = /Users/cewing/.virtualenvs/slidemaker /bin
5
+ BINDIR = . /bin
6
6
SPHINXOPTS =
7
7
SPHINXBUILD = $(BINDIR ) /sphinx-build
8
8
PAPER =
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ """Install the environment needed to build this documentation package
3
+ """
4
+ from venv import create
5
+ import sys
6
+
7
+
8
+ def check_compatible ():
9
+ """Returns True if the version of Python used is at least 3.3
10
+ """
11
+ compatible = True
12
+ if sys .version_info < (3 , 4 ):
13
+ compatible = False
14
+ elif not hasattr (sys , 'base_prefix' ):
15
+ compatible = False
16
+ return compatible
17
+
18
+
19
+ def main ():
20
+ if not check_compatible ():
21
+ msg = 'This script is only for use with Python 3.4 or later'
22
+ raise ValueError (msg )
23
+
24
+ import pdb ; pdb .set_trace ()
25
+ create ('.' , system_site_packages = False , with_pip = True )
26
+
27
+
28
+ if __name__ == '__main__' :
29
+ rc = 1
30
+ try :
31
+ main ()
32
+ rc = 1
33
+ except Exception as e :
34
+ print ("Error: {}" .format (e ), file = sys .stderr )
35
+ sys .exit (rc )
You can’t perform that action at this time.
0 commit comments