from setuptools import setup
import os

data = list()
for d in os.walk('markdo/'):
    if len(d[2]) > 0:
        path_list = map(
            lambda x: str.join('/', os.path.join(d[0], x).split('/')[1:]),
            d[2]
        )
        data.extend(path_list)

setup(
    name="MarkDo",
    version="0.2",
    author="Nitipit Nontasuwan",
    author_email="nitipit@gmail.com",
    url="http://nitipit.github.com/markdo/",
    license="MIT",
    description="Markdown editor for Gnome",
    platforms=['linux'],
    keywords=['editor', 'markdown'],
    package_dir={'markdo': 'markdo'},
    packages=['markdo'],
    scripts=['markdo/markdo'],
    package_data={'markdo': data},
    install_requires=['AppKit==0.2', 'Jinja2'],
)

from distutils.core import setup
import os

data = list()
for d in os.walk('markdo/'):
    if len(d[2]) > 0:
        path_list = map(
            lambda x: str.join('/', os.path.join(d[0], x).split('/')[1:]),
            d[2]
        )
        data.extend(path_list)

setup(
    name="MarkDo",
    version="0.2",
    author="Nitipit Nontasuwan",
    author_email="nitipit@gmail.com",
    url="http://nitipit.github.com/markdo/",
    license="MIT",
    description="Markdown editor for Gnome",
    platforms=['linux'],
    keywords=['editor', 'markdown'],
    package_dir={'markdo': 'markdo'},
    packages=['markdo'],
    scripts=['markdo/markdo'],
    package_data={'markdo': data},
    requires=['AppKit(>=0.2)', 'Jinja2'],
)

Fix setup.py