File: setup.bat

package info (click to toggle)
rpy 1.0.3-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 692 kB
  • ctags: 671
  • sloc: ansic: 2,144; python: 1,592; makefile: 129; sh: 69
file content (70 lines) | stat: -rw-r--r-- 2,785 bytes parent folder | download | duplicates (3)
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
61
62
63
64
65
66
67
68
69
70
@ECHO OFF
REM  $Id$
REM
REM ***** BEGIN LICENSE BLOCK *****
REM Version: MPL 1.1/GPL 2.0/LGPL 2.1
REM
REM The contents of this file are subject to the Mozilla Public License Version
REM 1.1 (the "License"); you may not use this file except in compliance with
REM the License. You may obtain a copy of the License at
REM http://www.mozilla.org/MPL/
REM
REM Software distributed under the License is distributed on an "AS IS" basis,
REM WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
REM for the specific language governing rights and limitations under the
REM License.
REM
REM The Original Code is the RPy python module.
REM
REM The Initial Developer of the Original Code is Walter Moreira.
REM Portions created by the Initial Developer are Copyright (C) 2002
REM the Initial Developer. All Rights Reserved.
REM
REM Contributor(s):
REM    Gregory R. Warnes <greg@warnes.net> (Maintainer)
REM
REM Alternatively, the contents of this file may be used under the terms of
REM either the GNU General Public License Version 2 or later (the "GPL"), or
REM the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
REM in which case the provisions of the GPL or the LGPL are applicable instead
REM of those above. If you wish to allow use of your version of this file only
REM under the terms of either the GPL or the LGPL, and not to allow others to
REM use your version of this file under the terms of the MPL, indicate your
REM decision by deleting the provisions above and replace them with the notice
REM and other provisions required by the GPL or the LGPL. If you do not delete
REM the provisions above, a recipient may use your version of this file under
REM the terms of any one of the MPL, the GPL or the LGPL.
REM
REM ***** END LICENSE BLOCK *****

REM Important Paths
set MINGW=C:\MinGW
set PYTHON=C:\Python25

path %MINGW%\bin;%PYTHON%;%PATH%

echo copying setup.Win32 to setup.cfg
copy setup.Win32 setup.cfg

REM Uncomment to specify a location for R
REM set RHOMES=C:\Progra~1\R\R-2.2.1

REM Uncomment to clean up completely before starting
python setup.py build clean --all

REM Perform Local Build and Install
python setup.py build_ext --compiler=mingw32 install --force

REM Create Windows Installer
python setup.py build --compiler=mingw32 bdist_wininst

echo Removing setup.cfg
del setup.cfg

REM Start a new command shell.  This accomplishes several things:
REM (1) prevents the window from closing, thus allowing the user
REM     to see any messages that were generated, it also
REM (2) Leaves the user in a shell with the environment variables 
REM     as we set them, making it easier for users to perform other
REM     actions in an appropriate environment
cmd /F:ON