From 72088a10de8d371e949d6bc02665672fbb714ffe Mon Sep 17 00:00:00 2001 From: Mike Krieger Date: Tue, 3 Jan 2012 15:26:25 -0800 Subject: [PATCH] Enable building without requiring copying --- python/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/setup.py b/python/setup.py index 781da4f..ad2062c 100644 --- a/python/setup.py +++ b/python/setup.py @@ -10,9 +10,9 @@ except(OSError): pass module1 = Extension('ujson', - sources = ['ujson.c', 'objToJSON.c', 'JSONtoObj.c', 'ultrajsonenc.c', 'ultrajsondec.c'], + sources = ['ujson.c', 'objToJSON.c', 'JSONtoObj.c', '../ultrajsonenc.c', '../ultrajsondec.c'], headers = ['version.h'], - include_dirs = ['./']) + include_dirs = ['./', '..']) def get_version(): filename = os.path.join(os.path.dirname(__file__), 'version.h')