|
38 | 38 | More details about Snappy library: http://google.github.io/snappy |
39 | 39 | """ |
40 | 40 |
|
41 | | -library_dirs, include_dirs = [], [] |
42 | | -if os.environ.get("CIBUILDWHEEL", False) and sys.version_info[:2] == (3, 9) and sys.platform =="darwin": |
43 | | - library_dirs = ["/usr/local/lib/"] |
44 | | - include_dirs = ["/usr/local/include/"] |
45 | | - |
46 | | - |
47 | | -snappymodule = Extension('snappy._snappy', |
48 | | - libraries=['snappy'], |
49 | | - sources=['src/snappy/snappymodule.cc', 'src/snappy/crc32c.c'], |
50 | | - library_dirs=library_dirs, |
51 | | - include_dirs=include_dirs) |
52 | | - |
53 | | -ext_modules = [snappymodule] |
54 | 41 | packages = ['snappy'] |
55 | | -install_requires = [] |
56 | | -setup_requires = [] |
57 | | -cffi_modules = [] |
58 | | - |
59 | | -if 'PyPy' in sys.version: |
60 | | - from setuptools import setup |
61 | | - ext_modules = [] |
62 | | - install_requires = ['cffi>=1.15.0'] |
63 | | - setup_requires = ['cffi>=1.15.0'] |
64 | | - cffi_modules = ['./src/snappy/snappy_cffi_builder.py:ffi'] |
| 42 | +install_requires = ['cramjam>=2.6.0', 'crc32c'] |
| 43 | +setup_requires = ['cramjam>=2.6.0', 'crc32c'] |
65 | 44 |
|
66 | 45 | setup( |
67 | 46 | name='python-snappy', |
|
94 | 73 | 'Programming Language :: Python :: 3.10', |
95 | 74 | 'Programming Language :: Python :: 3.11' |
96 | 75 | ], |
97 | | - ext_modules=ext_modules, |
98 | 76 | packages=packages, |
99 | 77 | install_requires=install_requires, |
100 | 78 | setup_requires=setup_requires, |
101 | | - cffi_modules=cffi_modules, |
102 | 79 | package_dir={'': 'src'}, |
103 | 80 | ) |
0 commit comments