forked from sdpython/ensae_teaching_cs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_setup_help_on_windows.bat
68 lines (51 loc) · 2.08 KB
/
build_setup_help_on_windows.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
rem we remove everything from dist
echo off
del /Q dist\*.*
rem unittests with python 3.4
IF EXIST c:\Python34vir GOTO next:
mkdir c:\Python34vir
:next:
IF EXIST c:\Python34vir\install GOTO fullsetup:
c:\Python34\Scripts\virtualenv c:\Python34vir\install --system-site-packages
:fullsetup:
echo #######################################################
c:\Python34vir\install\Scripts\python -u setup.py install
echo #######################################################
set pythonexe="c:\Python34\python"
%pythonexe% -u setup.py unittests
echo #######################################################
rem python 3.3
set pythonexe="c:\python33_x64\python"
%pythonexe% clean_pyd.py
%pythonexe% setup.py build bdist_wininst --plat-name=win-amd64
echo #######################################################
set pythonexe="c:\python33\python"
%pythonexe% clean_pyd.py
%pythonexe% setup.py sdist --formats=gztar,zip --verbose
%pythonexe% setup.py bdist_wininst
echo #######################################################
rem python 3.4
set pythonexe="c:\python34_x64\python"
%pythonexe% clean_pyd.py
%pythonexe% setup.py build bdist_wininst --plat-name=win-amd64
%pythonexe% setup.py build bdist_msi --plat-name=win-amd64
echo #######################################################
set pythonexe="c:\python34\python"
%pythonexe% clean_pyd.py
%pythonexe% setup.py sdist --formats=gztar,zip --verbose
%pythonexe% setup.py bdist_wininst
%pythonexe% setup.py bdist_msi
echo #######################################################
rem help
%pythonexe% -u setup.py build_pres
%pythonexe% -u setup.py build_sphinx
echo #######################################################
if not exist dist\html mkdir dist\html
if not exist dist\html2 mkdir dist\html2
if not exist dist\html3 mkdir dist\html3
if not exist dist\latex mkdir dist\latex
xcopy /E /C /I /Y _doc\presentation\build\html dist\html_pres
xcopy /E /C /I /Y _doc\sphinxdoc\build\html dist\html
xcopy /E /C /I /Y _doc\sphinxdoc\build2\html dist\html2
xcopy /E /C /I /Y _doc\sphinxdoc\build3\html dist\html3
xcopy /E /C /I /Y _doc\sphinxdoc\build\latex dist\latex