Commit f2977151 authored by Stefan Behnel's avatar Stefan Behnel

fix inclusion of .cpp utility files in setup.py

parent e4c4c878
...@@ -51,27 +51,13 @@ pxd_include_patterns = [ ...@@ -51,27 +51,13 @@ pxd_include_patterns = [
p+'/*.pxd' for p in pxd_include_dirs ] + [ p+'/*.pxd' for p in pxd_include_dirs ] + [
p+'/*.pyx' for p in pxd_include_dirs ] p+'/*.pyx' for p in pxd_include_dirs ]
if sys.version_info < (2,4): setup_args['package_data'] = {
install_base_dir = get_python_lib(prefix='') 'Cython.Plex' : ['*.pxd'],
import glob 'Cython.Compiler' : ['*.pxd'],
patterns = pxd_include_patterns + [ 'Cython.Runtime' : ['*.pyx', '*.pxd'],
'Cython/Plex/*.pxd', 'Cython.Utility' : ['*.pyx', '*.pxd', '*.c', '*.h', '*.cpp'],
'Cython/Compiler/*.pxd', 'Cython' : [ p[7:] for p in pxd_include_patterns ],
'Cython/Runtime/*.pyx' }
]
setup_args['data_files'] = [
(os.path.dirname(os.path.join(install_base_dir, pattern)),
[ f for f in glob.glob(pattern) ])
for pattern in patterns
]
else:
setup_args['package_data'] = {
'Cython.Plex' : ['*.pxd'],
'Cython.Compiler' : ['*.pxd'],
'Cython.Runtime' : ['*.pyx', '*.pxd'],
'Cython.Utility' : ['*.pyx', '*.pxd', '*.c', '*.h', '.cpp'],
'Cython' : [ p[7:] for p in pxd_include_patterns ],
}
# This dict is used for passing extra arguments that are setuptools # This dict is used for passing extra arguments that are setuptools
# specific to setup # specific to setup
......
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