fixing setuptools HELL

master
inpos 2018-08-23 18:45:57 +03:00
parent 9ac74de44f
commit fa3253e1ca
2 changed files with 3 additions and 14 deletions

View File

@ -0,0 +1,3 @@
include orun/extjs/app.html
recursive-include orun/examples *
recursive-include orun/extjs/static *

View File

@ -1,24 +1,10 @@
import setuptools
import os
def package_files(directory):
paths = []
for (path, _, filenames) in os.walk('orun/' + directory):
for filename in filenames:
paths.append(os.path.join(path, filename))
return paths
extra_files = package_files('examples')
extra_files.extend(package_files(os.path.join('extjs', 'static')))
extra_files.append(os.path.join('extjs', 'app.html'))
setuptools.setup(
name='Orun',
version='0.4.0',
author='Alexandre L. Dias, Roman Borodin (inpos@yandex.ru)',
author_email='alexandre@katrid.com',
packages=setuptools.find_packages(),
package_data={'': extra_files},
include_package_data=True,
zip_safe=False,
url='http://pypi.python.org/pypi/Orun/',