import os

from setuptools import setup, find_packages

PACKAGE_ROOT = 'src'
PACKAGE_NAME = 'yawf'

# populate namespace with __version__
execfile(os.path.join(PACKAGE_ROOT, PACKAGE_NAME, 'version.py'))

root_dir = os.path.abspath(os.path.dirname(__file__))

setup(
    name = PACKAGE_NAME,
    version = __version__,
    package_dir = {'': PACKAGE_ROOT},
    packages = find_packages(PACKAGE_ROOT),

    # Metadata
    author = "Nikolay Zakharov",
    author_email = "nikolay@desh.su",
    keywords = "workflow state transition fsm django",
)

@@ -47,17 +47,26 @@
 packages
+, findall
 %0A
-
 %0APACKAGE
@@ -261,16 +261,194 @@
 le__))%0A%0A
+data_files = filter(%0A    lambda name: not name.endswith('.py') and not name.endswith('.pyc'),%0A    findall('src/yawf'))%0Adata_files = %5Bx.split(os.sep, 2)%5B-1%5D for x in data_files%5D%0A%0A
 setup(%0A 
@@ -536,16 +536,16 @@
 _ROOT%7D,%0A
-
     pack
@@ -579,16 +579,53 @@
 E_ROOT),
+%0A    package_data = %7B'': data_files%7D,
 %0A%0A    # 

Fix setup.py to include locales