-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (36 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
from setuptools import setup
import os
from io import open # Py2.7 compatibility
def readme():
with open(os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'README.md'
), encoding='utf8') as fp:
return fp.read()
def get_version(fname):
with open(fname) as f:
for line in f:
if line.startswith("__version__ = '"):
return line.split("'")[1]
raise RuntimeError('could not parse version string')
setup(
name = 'flamp',
version = get_version('flamp/__init__.py'),
description = 'Faster linear algebra with multiple precision',
long_description = readme(),
long_description_content_type = 'text/markdown',
author = 'Clemens Hofreither',
author_email = '[email protected]',
url = 'https://github.com/c-f-h/flamp',
classifiers=[
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: BSD License',
],
packages = ['flamp'],
install_requires = [
'numpy>=1.11',
'gmpy2',
],
)