/
setup.py
executable file
·48 lines (44 loc) · 1.38 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
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
if sys.argv[-1] == "publish":
os.system("python setup.py sdist; twine upload dist/*")
sys.exit()
# Hackishly inject a constant into builtins to enable importing of the
# package before all the dependencies are built.
if sys.version_info[0] < 3:
import __builtin__ as builtins
else:
import builtins
builtins.__EMCEE_SETUP__ = True
import emcee # NOQA
setup(
name="emcee",
version=emcee.__version__,
author="Daniel Foreman-Mackey",
author_email="foreman.mackey@gmail.com",
packages=[
"emcee",
"emcee.moves", "emcee.backends",
"emcee.tests", "emcee.tests.unit", "emcee.tests.integration",
],
url="http://emcee.readthedocs.io",
license="MIT",
description=("The Python ensemble sampling toolkit for affine-invariant "
"MCMC"),
long_description=open("README.rst").read(),
package_data={"": ["LICENSE", "AUTHORS.rst"]},
include_package_data=True,
install_requires=["numpy"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
zip_safe=True,
)