-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (56 loc) · 1.98 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
57
58
59
60
61
62
#!/usr/bin/env python
try:
from Cython.Distutils import build_ext
except ImportError:
print "Please install Cython"
raise
from distutils.core import setup
from distutils.extension import Extension
import os
CLASSIFIERS = ["Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Cython",
"Programming Language :: Python",
"Topic :: Scientific/Engineering"]
# Description
description = "Bessel functions of the first kind written in Cython"
fid = file('README.txt', 'r')
long_description = fid.read()
fid.close()
idx = max(0, long_description.find("Bessel functions of the first kind"))
long_description = long_description[idx:]
NAME = 'jBessel'
MAINTAINER = "Simone Manini"
MAINTAINER_EMAIL = "[email protected]"
DESCRIPTION = description
LONG_DESCRIPTION = long_description
URL = "https://github.com/daron1337/jBessel"
DOWNLOAD_URL = "http://pypi.python.org/pypi/jBessel"
LICENSE = "BSD"
CLASSIFIERS = CLASSIFIERS
AUTHOR = "Simone Manini"
AUTHOR_EMAIL = "[email protected]"
PLATFORMS = "Linux/MacOsX"
ISRELEASED = True
VERSION = '0.1.3'
setup(name=NAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url=URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
classifiers=CLASSIFIERS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
platforms=PLATFORMS,
version=VERSION,
cmdclass = {'build_ext': build_ext},
script_args = ['build_ext', '--inplace'],
ext_modules = [Extension("Bessel", ["Bessel.pyx"])]
)