setuptools fix
parent
d345ddad62
commit
55bcd4d90f
7
setup.py
7
setup.py
|
@ -3,14 +3,14 @@ import os
|
||||||
|
|
||||||
def package_files(directory):
|
def package_files(directory):
|
||||||
paths = []
|
paths = []
|
||||||
for (path, _, filenames) in os.walk(directory):
|
for (path, _, filenames) in os.walk('orun/' + directory):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
paths.append(os.path.join('..', path, filename))
|
paths.append(os.path.join(path, filename))
|
||||||
return paths
|
return paths
|
||||||
|
|
||||||
extra_files = package_files('examples')
|
extra_files = package_files('examples')
|
||||||
extra_files.extend(package_files(os.path.join('extjs', 'static')))
|
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(
|
setuptools.setup(
|
||||||
|
@ -20,6 +20,7 @@ setuptools.setup(
|
||||||
author_email='alexandre@katrid.com',
|
author_email='alexandre@katrid.com',
|
||||||
packages=setuptools.find_packages(),
|
packages=setuptools.find_packages(),
|
||||||
package_data={'': extra_files},
|
package_data={'': extra_files},
|
||||||
|
data_files=[('',extra_files)],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
url='http://pypi.python.org/pypi/Orun/',
|
url='http://pypi.python.org/pypi/Orun/',
|
||||||
|
|
Loading…
Reference in New Issue