|
|
3602f24 |
diff -up python-blosc-1.4.1/setup.py.alt-arch python-blosc-1.4.1/setup.py
|
|
|
3602f24 |
--- python-blosc-1.4.1/setup.py.alt-arch 2017-01-05 15:53:42.581675095 +0100
|
|
|
3602f24 |
+++ python-blosc-1.4.1/setup.py 2017-01-05 15:54:06.361675095 +0100
|
|
|
3602f24 |
@@ -19,7 +19,6 @@ import sys
|
|
|
3602f24 |
from setuptools import Extension
|
|
|
3602f24 |
from setuptools import setup
|
|
|
3602f24 |
from glob import glob
|
|
|
3602f24 |
-import cpuinfo
|
|
|
3602f24 |
|
|
|
3602f24 |
########### Check versions ##########
|
|
|
3602f24 |
|
|
|
3602f24 |
@@ -93,26 +93,6 @@ else:
|
|
|
3602f24 |
inc_dirs += glob('c-blosc/internal-complibs/zstd*/common')
|
|
|
3602f24 |
def_macros += [('HAVE_LZ4', 1), ('HAVE_SNAPPY', 1), ('HAVE_ZLIB', 1), ('HAVE_ZSTD', 1)]
|
|
|
3602f24 |
|
|
|
3602f24 |
- # Guess SSE2 or AVX2 capabilities
|
|
|
3602f24 |
- cpu_info = cpuinfo.get_cpu_info()
|
|
|
3602f24 |
- # SSE2
|
|
|
3602f24 |
- if 'sse2' in cpu_info['flags']:
|
|
|
3602f24 |
- print('SSE2 detected')
|
|
|
3602f24 |
- CFLAGS.append('-DSHUFFLE_SSE2_ENABLED')
|
|
|
3602f24 |
- sources += [f for f in glob('c-blosc/blosc/*.c') if 'sse2' in f]
|
|
|
3602f24 |
- if os.name == 'posix':
|
|
|
3602f24 |
- CFLAGS.append('-msse2')
|
|
|
3602f24 |
- elif os.name == 'nt':
|
|
|
3602f24 |
- def_macros += [('__SSE2__', 1)]
|
|
|
3602f24 |
- # AVX2
|
|
|
3602f24 |
- if 'avx2' in cpu_info['flags']:
|
|
|
3602f24 |
- print('AVX2 detected')
|
|
|
3602f24 |
- CFLAGS.append('-DSHUFFLE_AVX2_ENABLED')
|
|
|
3602f24 |
- sources += [f for f in glob('c-blosc/blosc/*.c') if 'avx2' in f]
|
|
|
3602f24 |
- if os.name == 'posix':
|
|
|
3602f24 |
- CFLAGS.append('-mavx2')
|
|
|
3602f24 |
- elif os.name == 'nt':
|
|
|
3602f24 |
- def_macros += [('__AVX2__', 1)]
|
|
|
3602f24 |
|
|
|
3602f24 |
classifiers = """\
|
|
|
3602f24 |
Development Status :: 5 - Production/Stable
|