From 4ccf3421ed6344c51d27b18e73bab62872552e9f Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 11 Sep 2011 20:10:37 +0200 Subject: Build C modules inplace --- Makefile | 3 +-- setup.py | 2 +- 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', -- cgit v1.2.3