-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
71 lines (66 loc) · 2.68 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from setuptools import Extension, setup, find_packages
from Cython.Build import cythonize
import numpy as np
# https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies
extensions = [
Extension('trusat.caccelerated',
sources=['trusat/caccelerated.pyx'],
include_dirs=[np.get_include()],
extra_compile_args=['-O3','-ffast-math','-march=native'],
),
# Extension('trusat.profile',
# sources=['trusat/profile.pyx'],
# optional='optional',
# include_dirs=[np.get_include(), '/usr/local/include'],
# libraries=["m"],
# extra_compile_args=['-O3','-ffast-math','-march=native','-fopenmp','-I/usr/local/opt/llvm/include'],
# extra_link_args=['-lomp',"-L/usr/local/opt/libomp/lib/", "-L/usr/local/opt/llvm/lib"],
# # extra_link_args=['-lomp','-L/usr/local/opt/libomp/lib/'],
# )
]
with open("README.md", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name="trusat",
version="0.9.0",
author="Chris Lewicki",
author_email="chris@lewicki.com",
description="TruSat satellite observation processing utilities",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://trusat.org/",
project_urls={
"Source" : "https://github.com/TruSat/trusat-orbit",
"Tracker" : "https://github.com/TruSat/trusat-orbit/issues",
"Learning Hub" : "https://learn.trusat.org/docs/start-here",
"Forums" : "https://discuss.trusat.org/"
},
packages=['trusat'],
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering',
],
python_requires='>=3.6',
install_requires=[
requirements,
'trusat_backend==1.1.0',
],
ext_modules=cythonize(extensions),
dependency_links = [
'git+https://github.com/TruSat/trusat-backend@dev.chris.package#egg=trusat_backend-1.1.0'
],
)