forked from google/anvil-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-local.bat
39 lines (28 loc) · 1.1 KB
/
setup-local.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 Copyright 2012 Google Inc. All Rights Reserved.
REM
REM wtf Windows setup script
REM Sets up a local virtualenv for anvil.
REM This places all dependencies within the anvil-build/ path such that nothing
REM from site-packages is used. In order to make use of this consumers should
REM invoke anvil-local.bat instead of the global 'anvil'.
SET DIR=%~dp0
REM Visual Studio 2010
SET VS90COMNTOOLS=%VS100COMNTOOLS%
REM Visual Studio 2012
REM SET VS90COMNTOOLS=%VS110COMNTOOLS%
ECHO Installing virtualenv (1.8.2)...
pip install virtualenv==1.8.2
ECHO Setting up the virtual environment...
virtualenv %DIR%\local_virtualenv
ECHO Preparing virtualenv...
REM Instead of using active we need to do it manually - the Windows
REM activate script doesn't return control back to this script when run.
SET VIRTUAL_ENV=%DIR%\local_virtualenv
SET PATH=%VIRTUAL_ENV%\Scripts;%PATH%
REM %DIR%\local_virtualenv\Scripts\activate
ECHO Repeatedly installing twisted, as python still doesn't support VS2010...
FOR %%A IN (1 2 3 4 5) DO pip install twisted
ECHO Installing anvil-build...
cd %DIR%
python setup.py develop