Commit 2e449988d01c363f8968915ae1a8c9c60183b1d0
1 parent
1cb14468
Exists in
master
and in
1 other branch
fix windows scripts
Showing
6 changed files
with
25 additions
and
24 deletions
Show diff stats
... | ... | @@ -0,0 +1 @@ |
1 | +Subproject commit c1ccef65dacbbcd784e4fc7e2c5befe6001ac408 | ... | ... |
install/REQUIREMENTS_WINDOWS.txt
install/install_requirements_windows.bat
... | ... | @@ -15,9 +15,9 @@ REM String variables |
15 | 15 | |
16 | 16 | SET ASK_USE_MYSQL=-Do you wish to use mysql in your project ? Only if mysql-server is installed. (Y/N) |
17 | 17 | SET ASK_MYSQL_USERNAME=-MySQL server login (default 'root'): |
18 | -SET SQL_SCRIPT=CREATE DATABASE IF NOT EXISTS pyros; DROP USER IF EXISTS '%DB_USER%'; GRANT ALL ON pyros.* TO '%DB_USER%'@'localhost' INDENTIFIED BY '%DB_PASSWORD%'; GRANT ALL ON test_pyros.* TO '%DB_USER%'@'localhost' | |
18 | +SET SQL_SCRIPT=CREATE DATABASE IF NOT EXISTS pyros; DROP USER IF EXISTS '%DB_USER%'; GRANT ALL ON pyros.* TO '%DB_USER%'@'localhost' IDENTIFIED BY '%DB_PASSWORD%'; GRANT ALL ON test_pyros.* TO '%DB_USER%'@'localhost' | |
19 | 19 | SET SQL_FAIL=-Failed to execute database script, probably due to a wrong username or password |
20 | -SET TELL_MYSQL_CREATIONS=-Created pyros database.\n-Created new user '%DB_USER%' with password '%DB_PASSWORD%' | |
20 | +SET TELL_MYSQL_CREATIONS=-Created pyros database. -Created new user '%DB_USER%' with password '%DB_PASSWORD%' | |
21 | 21 | SET USE_SQLITE=-Sqlite will be used by default. There is no required configuration. |
22 | 22 | |
23 | 23 | SET PRIVATE_DIR_CREATE=-Created 'private' directory |
... | ... | @@ -123,19 +123,19 @@ echo %UPGRADE_WHEEL% |
123 | 123 | pip install --upgrade wheel |
124 | 124 | |
125 | 125 | REM Install specific to windows |
126 | -copy ..\install\windows\voevent* %VENV_NAME%\Lib\site-packages | |
127 | -pip install ..\install\windows\*.whl | |
126 | +FOR /D %%G in ("..\install\windows\*") DO xcopy /E /I %%G %VENV_NAME%\Lib\site-packages\%%~nxG | |
127 | + | |
128 | +pip install ..\install\windows\lxml-3.6.0-cp35-cp35m-win32.whl | |
129 | + | |
128 | 130 | |
129 | 131 | REM Install the needed python packages |
130 | 132 | echo %INSTALL_PACKAGES% |
131 | 133 | |
132 | 134 | pip install -r ../install/REQUIREMENTS_WINDOWS.txt |
133 | 135 | |
134 | -REM IF %MYSQL% NEQ 0 ( | |
135 | -REM pip install -r ../install/REQUIREMENTS.txt | |
136 | -REM ) ELSE ( | |
137 | -REM pip install -r ../install/REQUIREMENTS_SQLITE.txt | |
138 | -REM ) | |
136 | +IF %MYSQL% NEQ 0 ( | |
137 | + pip install ..\install\windows\mysqlclient-1.3.7-cp35-cp35m-win32.whl | |
138 | +) | |
139 | 139 | |
140 | 140 | REM Create the database content and a superuser pyros |
141 | 141 | cd ../src/ | ... | ... |
No preview for this file type
pyrosrun.bat
1 | 1 | @echo off |
2 | 2 | |
3 | -set NEEDED_ARGUMENT=One argument is needed. Possible arguments : [runserver|test] | |
4 | -set INVALID_ARGUMENT=Invalid argument. Possible arguments : [runserver|test] | |
3 | +set NEEDED_ARGUMENT=One argument is needed. Possible arguments : "[server|test]" | |
4 | +set INVALID_ARGUMENT=Invalid argument. Possible arguments : "[server|test]" | |
5 | 5 | |
6 | -private/venv_py35_pyros/Scripts/activate | |
6 | +call private/venv_py35_pyros/Scripts/activate | |
7 | 7 | |
8 | 8 | set argC=0 |
9 | 9 | for %%x in (%*) do Set /A argC+=1 |
10 | 10 | |
11 | 11 | |
12 | -if %argC% NEQ 1 ( | |
12 | +if "%argC%" NEQ "1" ( | |
13 | 13 | echo %NEEDED_ARGUMENT% |
14 | 14 | pause |
15 | - exit | |
16 | -) | |
17 | - | |
18 | -cd src/ | |
19 | - | |
20 | -if %1%==server ( | |
21 | - python manage.py runserver | |
22 | -) else if %1%==test( | |
23 | - python manage.py test | |
24 | 15 | ) else ( |
25 | - echo %INVALID_ARGUMENT% | |
16 | + cd src/ | |
17 | + | |
18 | + if "%1%" == "server" ( | |
19 | + python manage.py runserver | |
20 | + ) else if "%1%" == "test" ( | |
21 | + python manage.py test | |
22 | + ) else ( | |
23 | + echo %INVALID_ARGUMENT% | |
24 | + ) | |
26 | 25 | ) |
27 | 26 | |
27 | + | |
28 | 28 | pause | ... | ... |
src/alert_manager/_trial_temp/ivo__test.ivorn_12345678
0 โ 100644