Refactor include path.

This commit is contained in:
Naoki INADA 2009-06-10 10:45:07 +09:00
parent 85ca594118
commit a1fb1507d4
4 changed files with 11 additions and 6 deletions

View File

@ -2,7 +2,7 @@ msgpack.c
setup.py
pack.h
unpack.h
msgpack/pack_define.h
msgpack/pack_template.h
msgpack/unpack_define.h
msgpack/unpack_template.h
include/msgpack/pack_define.h
include/msgpack/pack_template.h
include/msgpack/unpack_define.h
include/msgpack/unpack_template.h

1
python/include Symbolic link
View File

@ -0,0 +1 @@
..

View File

@ -1 +0,0 @@
../msgpack

View File

@ -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 + """