forked from PeachyPrinter/peachyprinter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup_development_windows.bat
60 lines (50 loc) · 1.68 KB
/
setup_development_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
@ECHO OFF
SET will_fail=0
SET fail_reasons=""
:ACTIVATE_VENV
call venv/Scripts/activate.bat
IF NOT "%ERRORLEVEL%" == "0" (
ECHO FAILURE: Installer failed, check log
EXIT /B 99
)
:SETUP_DEP
ECHO ----Adding Kivy And Dependancies----
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools==19.2
python -m pip install --upgrade wheel==0.26.0
python -m pip install --upgrade docutils==0.12
python -m pip install --upgrade pygments==2.1
python -m pip install --upgrade pypiwin32==219
python -m pip install --upgrade kivy.deps.sdl2==0.1.12
python -m pip install --upgrade kivy.deps.glew==0.1.4
python -m pip install --upgrade kivy==1.9.1
ECHO --------Build Media---------------
python build_media.py
IF NOT "%ERRORLEVEL%" == "0" (
ECHO FAILURE: Media Build failed
EXIT /B 99
)
ECHO ----Adding PyInstaller----
python -m pip install --upgrade pyinstaller==3.1
IF NOT "%ERRORLEVEL%" == "0" (
ECHO FAILURE: Installer failed, check log
EXIT /B 99
)
ECHO ----Fetching API for Peachy Printer Tools----
python -m pip install --upgrade -r requirements.txt
IF NOT "%ERRORLEVEL%" == "0" (
ECHO FAILURE: Installer failed, check log
EXIT /B 99
)
echo --------Applying work around to googles protobuf library for packaging----
echo "" >> %VIRTUAL_ENV%\Lib\site-packages/google/__init__.py
python -m compileall %VIRTUAL_ENV%\Lib\site-packages/google/
IF NOT "%will_fail%" == "0" (
ECHO Enviroment Setup failed
ECHO -e %fail_reasons%
EXIT /B %will_fail%
)
ECHO ----Reverting Setup Tools to known good version----
python -m pip install --upgrade setuptools==19.2
ECHO -----------------------------------
ECHO Enviroment Setup complete and seemingly successful.