Commit a28d90b5 authored by Stefan Behnel's avatar Stefan Behnel

fix inclusion of package data files

parent 6a587681
...@@ -11,14 +11,23 @@ if sys.platform == "win32": ...@@ -11,14 +11,23 @@ if sys.platform == "win32":
setup_args = {} setup_args = {}
if sys.version_info < (2,4): if sys.version_info < (2,4):
import glob
cython_dir = os.path.join(get_python_lib(prefix=''), 'Cython') cython_dir = os.path.join(get_python_lib(prefix=''), 'Cython')
compiler_dir = os.path.join(cython_dir, 'Compiler') compiler_dir = os.path.join(cython_dir, 'Compiler')
setup_args['data_files'] = [ setup_args['data_files'] = [
(compiler_dir, ['Cython/Compiler/Lexicon.pickle']), (compiler_dir, ['Cython/Compiler/Lexicon.pickle']),
(cython_dir, ['Cython/Includes/*.pxd'])] (cython_dir, [ f for pattern in
['Cython/Includes/*.pxd',
'Cython/Plex/*.pxd',
'Cython/Compiler/*.pxd',
'Cython/Runtime/*.pyx']
for f in glob.glob(pattern) ])]
else: else:
setup_args['package_data'] = {'Cython.Compiler' : ['Lexicon.pickle'], setup_args['package_data'] = {'Cython.Compiler' : ['Lexicon.pickle'],
'Cython' : ['Includes/*.pxd']} 'Cython' : ['Includes/*.pxd',
'Plex/*.pxd',
'Compiler/*.pxd',
'Runtime/*.pyx']}
if os.name == "posix": if os.name == "posix":
scripts = ["bin/cython"] scripts = ["bin/cython"]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment