-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
34 lines (29 loc) · 950 Bytes
/
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
#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
try:
from setuptools_rust import RustExtension
except ImportError:
import subprocess
errno = subprocess.call([sys.executable, "-m", "pip", "install", "setuptools-rust"])
if errno:
print("Please install setuptools-rust package")
raise SystemExit(errno)
else:
from setuptools_rust import RustExtension
setup_requires = ["setuptools-rust>=0.10.1", "wheel", "setuptools_scm"]
setup(
name="datacube_compute",
setup_requires=setup_requires,
author="Open Data Cube",
author_email="",
maintainer="Open Data Cube",
description="Miscellaneous Algorithmic helper methods",
long_description="",
license="Apache License 2.0",
tests_require=["pytest"],
install_requires=["numpy"],
packages=find_packages(),
zip_safe=False,
rust_extensions=[RustExtension("datacube_compute.backend")],
)