forked from csplib/csplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows_build.bat
43 lines (38 loc) · 1.48 KB
/
windows_build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
echo This file tries to setup a windows machine for CSPLib.
echo You should have already installed python 3.4 from www.python.org
if exist c:\Python34\Scripts\pip.exe (
echo Found python 3.4 installed in the usual place
set pipcmd=c:\Python34\Scripts\pip.exe
set pycmd=c:\Python34\python.exe
goto pyfound
)
pip.exe 2> NUL 1> NUL
if not %ERRORLEVEL%=9009 (
echo Found pip in the path...
python.exe -V 2> NUL 1> NUL
if not %ERRORLEVEL%==9009 (
echo and python as well!
echo I will hope this is python 3.4, and use it!
set pipcmd=pip.exe
set pycmd=python.exe
goto pyfound
)
)
echo Cannot find python...
echo Please run the following yourself:
echo pip install -r scripts/support/packages.txt
echo pip install --allow-external guess-language-spirit --allow-unverified guess-language-spirit mdx_smartypants==1.5.1 --pre
echo python internal/scripts/framework/generate_web_site.py
exit 1
:pyfound
echo Installing packages (this may take up to 5 minutes first time)
%pipcmd% install -q -r internal/scripts/support/packages.txt
%pipcmd% install -q --allow-external guess-language-spirit --allow-unverified guess-language-spirit mdx_smartypants==1.5.1 --pre
echo Building csplib website
%pycmd% internal/scripts/framework/generate_web_site.py
echo Website in _deploy directory
echo To view the website locally run:
echo cd _deploy
echo %pycmd% -m http.server
echo Then open your webbrowser to localhost:8000