-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
54 lines (50 loc) · 1.35 KB
/
setup.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
from pathlib import Path
import os
extra_compile_args = []
if os.name == "nt": # Windows
extra_compile_args = ["/w"]
else: # macOS and Linux
extra_compile_args = [
"-Wno-unreachable-code",
"-Wno-unreachable-code-fallthrough",
]
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
extensions = [
Extension(
"synapse.utils.ndtp",
["synapse/utils/ndtp.pyx"],
extra_compile_args=extra_compile_args,
),
]
setup(
name="science-synapse",
version="0.9.2",
description="Client library and CLI for the Synapse API",
author="Science Team",
author_email="[email protected]",
packages=find_packages(include=["synapse", "synapse.*"]),
long_description=long_description,
long_description_content_type="text/markdown",
ext_modules=cythonize(
extensions,
compiler_directives={"language_level": "3"},
),
install_requires=[
"coolname",
"grpcio-tools",
"protoletariat",
"numpy",
"pyserial",
"scipy",
"crcmod",
],
entry_points={
"console_scripts": [
"synapsectl = synapse.cli:main",
"synapse-sim = synapse.simulator:main",
],
},
)