Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

include data_files recursively

  • Loading branch information...
commit 86ba1a234b4e7fb9817bae17da440dac5dda5caa 1 parent fb37f8a
@posativ authored
Showing with 9 additions and 5 deletions.
  1. +1 −1  regenwolken/__init__.py
  2. +8 −4 setup.py
View
2  regenwolken/__init__.py
@@ -127,4 +127,4 @@ def main():
if '--debug' in sys.argv:
app.debug = True
- app.run(host=app.config.get('BIND_ADDRESS', '0.0.0.0'), port=app.config.get('PORT', 1234))
+ app.run(host=app.config['BIND_ADDRESS'], port=app.config['PORT'])
View
12 setup.py
@@ -2,9 +2,10 @@
# -*- encoding: utf-8 -*-
import sys
+
+import os
import re
-from glob import glob
from os.path import join, dirname
from setuptools import setup, find_packages
@@ -18,6 +19,11 @@ def install_data_files_hack():
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)
@@ -36,9 +42,7 @@ def install_data_files_hack():
data_files=[
'README.md',
'LICENSE.txt',
- ['regenwolken/templates', glob('regenwolken/templates/*')],
- ['regenwolken/static', glob('regenwolken/static/*')],
- ],
+ ] + list(find('regenwolken/static/')) + list(find('regenwolken/templates/')),
long_description=open(join(dirname(__file__), 'README.md')).read(),
classifiers=[
"Development Status :: 4 - Beta",
Please sign in to comment.
Something went wrong with that request. Please try again.