forked from codalab/codalab-competitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev_setup.bat
39 lines (27 loc) · 1011 Bytes
/
dev_setup.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
@echo off
REM This is the developer setup script for windows.
REM We assume you installed python in C:\Python27
SET PYTHON=C:\Python27
REM Update pip
%PYTHON%\Scripts\easy_install pip
%PYTHON%\Scripts\pip install virtualenv
REM Create the virtual environment named venv
%PYTHON%\Scripts\virtualenv --clear --distribute venv
REM Activate the virtual environment
CALL venv\Scripts\activate.bat
REM Update pip and distribute in venv
pip install --upgrade pip
pip install --upgrade distribute
REM Install development requirements
pip install -r codalab\requirements\dev.txt
REM If an old database exists, move it out of the way
if exist dev_db.sqlite move dev_db.sqlite dev_db.sqlite.bak
REM Initialize the app
python codalab\manage.py syncdb
REM Initialize models in the database
python codalab\scripts\initialize.py
REM Make test users
python codalab\scripts\users.py
REM Make example challenges
python codalab\scripts\challenges.py
ECHO "You are now ready to run: python codalab\manage.py runserver"