forked from readbeyond/aeneas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_c_extensions.bat
54 lines (44 loc) · 1.78 KB
/
compile_c_extensions.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
: Compile Python C extensions for aeneas on Windows
: -------------------------------------------------
: BAT Script Author: Richard Margetts
: Author: Alberto Pettarin
: Copyright:
: Copyright 2012-2013, Alberto Pettarin (www.albertopettarin.it)
: Copyright 2013-2015, ReadBeyond Srl (www.readbeyond.it)
: Copyright 2015, Alberto Pettarin (www.albertopettarin.it)
:
: Licence: GNU AGPL 3
: Version: 1.2.0
: Email: [email protected]
: Status: Production
: Before running this batch file in Windows, do the following:
: 1. Download and install the Microsoft Visual C++ compiler for Python
: http://www.microsoft.com/en-us/download/details.aspx?id=44266
: 2. Open the Visual C++ 2008 Command prompt (via Windows Search)
: 3. Change directory to your aeneas folder
: 4. Now run this batch file
@echo off
echo "[WARN] This script is deprecated. Instead, please use"
echo "[WARN] python setup.py build_ext --inplace"
echo "[WARN] See the README for details"
echo ""
echo "[INFO] Setting environment variables..."
SET DISTUTILS_USE_SDK=1
SET MSSdk=1
echo "[INFO] Setting environment variables... done"
cd aeneas
echo "[INFO] Compiling cdtw..."
python cdtw_setup.py build_ext --inplace
echo "[INFO] Compiling cdtw... done"
echo "[INFO] Compiling cmfcc..."
python cmfcc_setup.py build_ext --inplace
echo "[INFO] Compiling cmfcc... done"
cd ..
echo "[INFO] Now please run"
echo "[INFO] python check_dependencies.py"
echo "[INFO] to check that the C extensions are compiled."
echo ""
echo "[INFO] If the compilation failed, please check that:"
echo "[INFO] 1. you have the Microsoft Visual C++ compiler for Python installed, and"
echo "[INFO] 2. you ran this script in the Visual C++ Command prompt instead of the regular Windows prompt."
echo "[INFO] See the README for details."