forked from PyMVPA/PyMVPA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.win
60 lines (44 loc) · 1.13 KB
/
Makefile.win
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
# Makefile to build PyMVPA under Windows using a standard Python
# distribution and MinGW
#
# Adjust this path to match the version and location of your Python
# installation
PYTHON_VERSION=2.6
PYTHON_PATH=C:\\Python26
#
# Building
#
all: build configure-inplace-use
# build included 3rd party pieces (if present)
3rd: 3rd-stamp
3rd-stamp:
cd 3rd\libsvm & $(MAKE) -f Makefile.win
build: 3rd
# build pymvpa extensions including libsvm
set PYTHON_INCLUDE="$(PYTHON_PATH)\\include" \
& python setup.py build_ext
installer: 3rd build
# now build the installer
python setup.py bdist_wininst --bitmap doc\source\pics\logo.bmp
configure-inplace-use:
copy build\\lib.win32-$(PYTHON_VERSION)\\mvpa\\clfs\\libsmlrc\\smlrc.pyd \
mvpa\\clfs\\libsmlrc
copy build\\lib.win32-$(PYTHON_VERSION)\\mvpa\\clfs\\libsvmc\\_svmc.pyd \
mvpa\\clfs\\libsvmc
#
# Cleaning
#
clean:
-rmdir /S /Q build
-del /S *.a *.o *.gch *.pyd
#
# Testing
#
ut-%: build configure-inplace-use
@set PYTHONPATH=$(CURDIR) & cd tests & python test_$*.py
unittest: build configure-inplace-use
@set PYTHONPATH=$(CURDIR) & cd tests & python main.py
#
# Trailer
#
.PHONY: all