Commit 01fb29ca authored by Stefan Behnel's avatar Stefan Behnel

trial fix for Py2.3 build

parent a66923a2
...@@ -14,10 +14,6 @@ if 'sdist' in sys.argv and sys.platform != "win32" and sys.version_info >= (2,4) ...@@ -14,10 +14,6 @@ if 'sdist' in sys.argv and sys.platform != "win32" and sys.version_info >= (2,4)
hgrev.write(rev) hgrev.write(rev)
hgrev.close() 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": if sys.platform == "darwin":
# Don't create resource files on OS X tar. # Don't create resource files on OS X tar.
os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true' os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
...@@ -44,15 +40,13 @@ if sys.version_info[0] >= 3: ...@@ -44,15 +40,13 @@ if sys.version_info[0] >= 3:
if sys.version_info < (2,4): if sys.version_info < (2,4):
import glob import glob
cython_dir = os.path.join(get_python_lib(prefix=''), 'Cython')
compiler_dir = os.path.join(cython_dir, 'Compiler')
setup_args['data_files'] = [ setup_args['data_files'] = [
(cython_dir, [ f for pattern in (os.path.dirname(pattern), [ f for f in glob.glob(pattern) ])
['Cython/Includes/*.pxd', for pattern in ['Cython/Includes/*.pxd',
'Cython/Plex/*.pxd', 'Cython/Plex/*.pxd',
'Cython/Compiler/*.pxd', 'Cython/Compiler/*.pxd',
'Cython/Runtime/*.pyx'] 'Cython/Runtime/*.pyx']
for f in glob.glob(pattern) ])] ]
else: else:
setup_args['package_data'] = {'Cython' : ['Includes/*.pxd', setup_args['package_data'] = {'Cython' : ['Includes/*.pxd',
'Plex/*.pxd', 'Plex/*.pxd',
......
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