Skip to content

Commit c30ec71

Browse files
committed
work on updating the build system
1 parent af1b376 commit c30ec71

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
BINDIR = /Users/cewing/.virtualenvs/slidemaker/bin
5+
BINDIR = ./bin
66
SPHINXOPTS =
77
SPHINXBUILD = $(BINDIR)/sphinx-build
88
PAPER =

install.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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)

0 commit comments

Comments
 (0)