-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
46 lines (36 loc) · 1.24 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
from setuptools import setup
import os
rootdir = os.path.abspath(os.path.dirname(__file__))
long_desc = open(os.path.join(rootdir, 'README.md')).read()
# Write a versions.py file for class attribute
VERSION = "0.0.1"
def write_version_py(filename=None):
doc = ("\"\"\"\n" +
"This is a VERSION file and should NOT be manually altered" +
"\n\"\"\"")
doc += "\nversion = \"%s\"" % VERSION
if not filename:
filename = os.path.join(
os.path.dirname(__file__), "rvlib", "version.py")
f = open(filename, "w")
try:
f.write(doc)
finally:
f.close()
write_version_py()
import build_interface
build_interface.main()
# Setup
setup(name="rvlib",
packages=["rvlib"],
setup_requires=["cffi>=1.0.0"],
cffi_modules=["build_lib.py:ffi"],
install_requires=["cffi>=1.0.0"],
include_package_data=True,
version=VERSION,
description="Probability distributions mimicking Distrbutions.jl",
author="Daniel Csaba, Spencer Lyon",
author_email="daniel.csaba@nyu.edu, spencer.lyon@stern.nyu.edu",
url="https://github.com/QuantEcon/rvlib", # URL to the github repo
keywords=["statistics", "distributions"],
long_description=long_desc)