summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-11 20:10:37 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-11 20:10:37 +0200
commit4ccf3421ed6344c51d27b18e73bab62872552e9f (patch)
treeec3051e57faf4ae72506fef163e5d338d5927a14
parentfa0939622becdbab1063150a67ef3910dbbedf54 (diff)
downloadpoezio-4ccf3421ed6344c51d27b18e73bab62872552e9f.tar.gz
poezio-4ccf3421ed6344c51d27b18e73bab62872552e9f.tar.bz2
poezio-4ccf3421ed6344c51d27b18e73bab62872552e9f.tar.xz
poezio-4ccf3421ed6344c51d27b18e73bab62872552e9f.zip
Build C modules inplace
-rw-r--r--Makefile3
-rw-r--r--setup.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8c0935f0..f385c76b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,7 @@ LOCALEDIR=$(DATADIR)/locale
MANDIR=$(DATADIR)/man
all: Makefile
- python3 setup.py build
- cp build/lib.linux-x86_64-3.2/poopt.cpython-32mu.so src/
+ cd src/ && python3 ../setup.py build_ext --inplace
clean:
find ./ -name \*.pyc -delete
diff --git a/setup.py b/setup.py
index 50d787da..496d3d7b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from distutils.core import setup, Extension
module_poopt = Extension('poopt',
- sources = ['src/pooptmodule.c'])
+ sources = ['pooptmodule.c'])
setup (name = 'BuildLines',
version = '0.0.1',