#!/usr/bin/env python

try:
    from setuptools import setup, Extension, find_packages
except ImportError:
    from distutils.core import setup, Extension, find_packages

ext_module = Extension('_Mykytea',
                       sources=['lib/kytea/mykytea_wrap.cxx', 'lib/kytea/mykytea.cpp', 'lib/kytea/mykytea.hpp'],
                       libraries=["kytea"],
                       )

import os
import sys

libdir = 'lib/kytea'

import info
import version

setup(
      name='kytea',
      version='0.1.0',
      author='Michiaki Ariga',
      author_email='chezou@gmail.com',
      description = ('An text analysis toolkit KyTea binding'),
      license = 'MIT',
      keywords = 'KyTea NLP',
      url = 'https://github.com/chezou/Mykytea-python',
      ext_modules=[ext_module],
      packages= find_packages(libdir),
      package_dir={"": libdir},
      py_modules=['Mykytea'],
      )

@@ -288,33 +288,52 @@
 cpp'
-, 'lib/kytea/mykytea.hpp'
+%5D,%0A                       libraries=%5B%22kytea%22
 %5D,%0A 
@@ -354,36 +354,42 @@
         
-libraries=%5B%22
+include_dirs=%5B'lib/
 kytea
-%22%5D,
+'%5D
 %0A       

Add include_dirs for ext_module