summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorNaoki INADA <inada-n@gear>2009-06-10 10:45:07 +0900
committerNaoki INADA <inada-n@gear>2009-06-10 10:45:07 +0900
commitfcc645b18bcd36b6240acdfd01ce4d193f1912f3 (patch)
treee0f04a82176b93f1af90dea419d5672b79bd9ef7 /setup.py
parent85b68fbf8c33fb7daaaa1caafe50be8361c4b1d1 (diff)
downloadmsgpack-python-fcc645b18bcd36b6240acdfd01ce4d193f1912f3.tar.gz
Refactor include path.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index e5651a0..65ca412 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,13 @@
from distutils.core import setup, Extension
+import os
version = '0.0.1'
-msgpack_mod = Extension('msgpack', sources=['msgpack.c'])
+PACKAGE_ROOT = os.getcwdu()
+INCLUDE_PATH = os.path.join(PACKAGE_ROOT, 'include')
+msgpack_mod = Extension('msgpack',
+ sources=['msgpack.c'],
+ include_dirs=[INCLUDE_PATH])
desc = 'MessagePack serializer/desirializer.'
long_desc = desc + """