-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
56 lines (48 loc) · 1.76 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
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup, Extension
setup, Extension
except ImportError:
print "failed import"
from distutils.core import setup
from distutils.extension import setup, Extension
setup, Extension
import numpy.distutils.misc_util
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
algorithms_ext = Extension("mofa._algorithms", ["mofa/_algorithms.c"])
setup(
name="mofa",
version="0.0.2b",
author="Ross Fadely, David W. Hogg & Dan Foreman-Mackey",
packages=["mofa"],
url="https://github.com/rossfadely/mofa",
license="MIT", # Short name of license.
description="Mixture of factor analyzers",
long_description=open("README.rst").read(),
package_data={"": ["LICENSE.rst", "AUTHORS.rst"]},
ext_modules = [algorithms_ext],
include_package_data=True,
install_requires=["numpy", "scipy"],
include_dirs = numpy.distutils.misc_util.get_numpy_include_dirs(),
classifiers=[
# "Development Status :: 1 - Planning",
# "Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
# "Development Status :: 4 - Beta",
# "Development Status :: 5 - Production/Stable",
# "Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
# Choose a license from:
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
# "License :: OSI Approved :: BSD License",
# "License :: OSI Approved :: MIT License",
# "License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
)