From: Stefan Behnel Date: Thu, 11 Mar 2010 19:19:15 +0000 (+0100) Subject: trial fix for Py2.3 build X-Git-Tag: 0.13.beta0~319^2~2^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01fb29ca89107c3d068ad213634abf616a8405da;p=cython.git trial fix for Py2.3 build --- diff --git a/setup.py b/setup.py index 97412e0b..2e5b8cdc 100644 --- a/setup.py +++ b/setup.py @@ -14,10 +14,6 @@ if 'sdist' in sys.argv and sys.platform != "win32" and sys.version_info >= (2,4) hgrev.write(rev) hgrev.close() -compiler_dir = os.path.join(get_python_lib(prefix=''), 'Cython/Compiler') -if sys.platform == "win32": - compiler_dir = compiler_dir[len(sys.prefix)+1:] - if sys.platform == "darwin": # Don't create resource files on OS X tar. os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true' @@ -44,15 +40,13 @@ if sys.version_info[0] >= 3: if sys.version_info < (2,4): import glob - cython_dir = os.path.join(get_python_lib(prefix=''), 'Cython') - compiler_dir = os.path.join(cython_dir, 'Compiler') setup_args['data_files'] = [ - (cython_dir, [ f for pattern in - ['Cython/Includes/*.pxd', + (os.path.dirname(pattern), [ f for f in glob.glob(pattern) ]) + for pattern in ['Cython/Includes/*.pxd', 'Cython/Plex/*.pxd', 'Cython/Compiler/*.pxd', 'Cython/Runtime/*.pyx'] - for f in glob.glob(pattern) ])] + ] else: setup_args['package_data'] = {'Cython' : ['Includes/*.pxd', 'Plex/*.pxd',