setuptools fix

master
inpos 2018-08-23 15:28:20 +03:00
parent d345ddad62
commit 55bcd4d90f
1 changed files with 5 additions and 4 deletions

View File

@ -3,14 +3,14 @@ import os
def package_files(directory):
paths = []
for (path, _, filenames) in os.walk(directory):
for (path, _, filenames) in os.walk('orun/' + directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
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'))
extra_files.append(os.path.join('orun', 'extjs', 'app.html'))
setuptools.setup(
@ -20,10 +20,11 @@ setuptools.setup(
author_email='alexandre@katrid.com',
packages=setuptools.find_packages(),
package_data={'': extra_files},
data_files=[('',extra_files)],
include_package_data=True,
zip_safe=False,
url='http://pypi.python.org/pypi/Orun/',
license='LICENSE',
description='Orun (Object RUNtime) Python JavaScript RIA framework.',
long_description=open('README').read(),
)
)