From 55bcd4d90f7da1f44c75232a390ac84e8ec6b79f Mon Sep 17 00:00:00 2001 From: inpos Date: Thu, 23 Aug 2018 15:28:20 +0300 Subject: [PATCH] setuptools fix --- setup.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index f30eac3..03f2bdf 100644 --- a/setup.py +++ b/setup.py @@ -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(), -) \ No newline at end of file +)