forked from amorilia/pyffi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makezip.bat
executable file
·47 lines (38 loc) · 1.77 KB
/
makezip.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
@echo off
rem find python
set PYTHONPATH=
for /f "tokens=3* delims= " %%A in ('reg.exe query "HKLM\SOFTWARE\Python\PythonCore\2.5\InstallPath\" \ve') do set PYTHONPATH="%%B"
rem TODO fix for Vista
if not defined PYTHONPATH (
set PYTHONPATH=C:\Python26
)
rem Fallback if Python 2.6 is not installed: try 2.5
if not exist %PYTHONPATH% (
set PYTHONPATH=C:\Python25
)
rem not found... complain and quit
if not defined PYTHONPATH (
echo.
echo Python not found!
echo.
goto end
)
rem python in registry but executable not found... complain and exit
if not exist %PYTHONPATH%\python.exe (
echo.
echo python.exe not found!
echo.
goto end
)
rem generate documentation
del docs\*.*
cd docs-sphinx
%PYTHONPATH%\python.exe %PYTHONPATH%\Scripts\epydoc.py -v --output=..\docs --name="Python File Format Interface" --url="http://pyffi.sourceforge.net/" --navlink=" <a class=\"navbar\" target=\"_top\" href=\"http://pyffi.sourceforge.net/\">Python File Format Interface</a> </th><th class=\"navbar\" align=\"center\"> <a class=\"navbar\" target=\"_top\" href=\"http://sourceforge.net\"><img src=\"http://sflogo.sourceforge.net/sflogo.php?group_id=199269\" width=\"88\" height=\"31\" border=\"0\" alt=\"SourceForge.net Logo\" /></a> " --docformat="restructuredtext" --top=pyffi pyffi
cd ..
rem create source and binary distributions
del MANIFEST
%PYTHONPATH%\python.exe setup.py sdist --format=zip
rem %PYTHONPATH%\python.exe setup.py sdist --format=bztar
%PYTHONPATH%\python setup.py --command-packages bdist_nsi bdist_nsi --bitmap=win-install/pyffi_install_164x314.bmp --headerbitmap=win-install/pyffi_install_150x57.bmp --run2to3 --msvc2008sp1 --nshextra=win-install/pyffi.nsh --target-versions=2.5,2.6,2.7,3.0,3.1,3.2 --maya --blender
:end
pause