#!/usr/bin/env python
# -*- coding: utf-8 -*-

""" distribute- and pip-enabled setup.py for showboat """

from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup

import re

def subdir_findall(dir, subdir):
    strip_n = len(dir.split('/'))
    path = '/'.join((dir, subdir))
    return ['/'.join(s.split('/')[strip_n:]) for s in setuptools.findall(path)]


setup(
    name='showboat',

    version='dev',
    include_package_data=True,

    packages=['showboat']
    package_data = { 'showboat' : subdir_findall('showboat', 'payload')}
    scripts=['scripts/showboat', 'scripts/showboat_server'],
)

@@ -188,17 +188,26 @@
 rt setup
+, findall
 %0A
-
 %0Aimport 
@@ -370,19 +370,8 @@
  in 
-setuptools.
 find
@@ -488,16 +488,17 @@
 owboat'%5D
+,
 %0A    pac
@@ -562,16 +562,17 @@
 yload')%7D
+,
 %0A    scr

Fix broken setup.py