~itamarst/+junk/giljoy

14 by Itamar Turner-Trauring
Make it run on Ubunut 11.04
1
# It seems like Ubuntu 11.04 decided not to package debug symbols for regular
2
# interpreter, so this is built against debug interpreter. If you've got debug
3
# symbols installed for your normal Python interpreter, you probably want this
4
# to be '2.7', rather than '2.7_d' (or '2.6' for Python 2.6, etc.).
5
PYTHON_VERSION=2.7_d
10 by Itamar Turner-Trauring
License, docs.
6
PYTHON_INCLUDE=/usr/include/python${PYTHON_VERSION}
7
8
2 by Itamar Turner-Trauring
Interpreter and pre-load that keep track of GIL.
9
build:
14 by Itamar Turner-Trauring
Make it run on Ubunut 11.04
10
	gcc -I${PYTHON_INCLUDE} -Wall -fPIC -lpython${PYTHON_VERSION} -g -shared nogilexample.c -o nogilexample.so
11
	gcc -I${PYTHON_INCLUDE} -Wall -D_GNU_SOURCE -fPIC -g -lc -ldl -lpython${PYTHON_VERSION} -lpthread -shared gilpreload.c -o gilpreload.so
10 by Itamar Turner-Trauring
License, docs.
12
	gcc -I${PYTHON_INCLUDE} -Wall -g -lc -lpython${PYTHON_VERSION} gilpython.c -o gilpython
2 by Itamar Turner-Trauring
Interpreter and pre-load that keep track of GIL.
13
14
15
test:
6 by Itamar Turner-Trauring
Continue tweaking.
16
	./giljoy example.py
2 by Itamar Turner-Trauring
Interpreter and pre-load that keep track of GIL.
17
18
19
clean:
6 by Itamar Turner-Trauring
Continue tweaking.
20
	rm -f gilpreload.so gilpython nogilexample.so