-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
52 lines (42 loc) · 1.16 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
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
try:
from setuptools import setup, Extension
setup, Extension
except ImportError:
from distutils.core import setup, Extension
setup, Extension
import numpy
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
desc = open("README.rst").read()
required = ["numpy"]
include_dirs = [
"acor",
numpy.get_include(),
]
acor = Extension("acor._acor", ["acor/_acor.c", "acor/acor.c"],
include_dirs=include_dirs)
setup(
name="acor",
version="1.1.1",
author="Daniel Foreman-Mackey and Jonathan Goodman",
author_email="[email protected]",
packages=["acor"],
url="http://github.com/dfm/acor",
license="MIT",
description="Estimate the autocorrelation time of a time series quickly.",
long_description=desc,
install_requires=required,
ext_modules=[acor],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
)