Skip to content

Commit

Permalink
remove insta_data_files_hack from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
posativ committed Dec 24, 2013
1 parent 8ddedbb commit e6f419c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
4 changes: 2 additions & 2 deletions MANIFEST.in
@@ -1,3 +1,3 @@
include README.md LICENSE.txt
recursive-include regenwolken/static
recursive-include regenwolken/templates/ *
recursive-include regenwolken/static *
recursive-include regenwolken/templates *.html
20 changes: 0 additions & 20 deletions setup.py
Expand Up @@ -9,22 +9,6 @@
from os.path import join, dirname
from setuptools import setup, find_packages


def install_data_files_hack():
# This is a clever hack to circumvent distutil's data_files
# policy "install once, find never". Definitely a TODO!
# -- https://groups.google.com/group/comp.lang.python/msg/2105ee4d9e8042cb
from distutils.command.install import INSTALL_SCHEMES
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']


def find(path):
for root, dirs, files in os.walk(path):
yield [root, [join(root, p) for p in files]]


install_data_files_hack()
version = re.search("__version__ = '([^']+)'",
open('regenwolken/__init__.py').read()).group(1)

Expand All @@ -39,10 +23,6 @@ def find(path):
url='http://pypi.python.org/pypi/regenwolken/',
license='BSD revised',
description='open source, self-hosting CloudApp',
data_files=[
'README.md',
'LICENSE.txt',
] + list(find('regenwolken/static/')) + list(find('regenwolken/templates/')),
long_description=open(join(dirname(__file__), 'README.md')).read(),
classifiers=[
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit e6f419c

Please sign in to comment.