-
-
Notifications
You must be signed in to change notification settings - Fork 757
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (20 loc) · 837 Bytes
/
setup.py
File metadata and controls
27 lines (20 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'''
Copyright (C) 2017-2026 Bryant Moscon - bmoscon@gmail.com
Please see the LICENSE file for the terms and conditions
associated with this software.
'''
# This setup.py is minimal and only handles the Cython extension,
import os
from setuptools import Extension, setup
from Cython.Build import cythonize
extra_compile_args = ["/O2" if os.name == "nt" else "-O3"]
define_macros = []
# comment out line to compile with type check assertions
# verify value at runtime with cryptofeed.types.COMPILED_WITH_ASSERTIONS
define_macros.append(('CYTHON_WITHOUT_ASSERTIONS', None))
extension = Extension("cryptofeed.types", ["cryptofeed/types.pyx"],
extra_compile_args=extra_compile_args,
define_macros=define_macros)
setup(
ext_modules=cythonize([extension], language_level=3, force=True),
)