forked from Luke-Pratley/Optimus-Primal
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (42 loc) · 1.51 KB
/
setup.py
File metadata and controls
52 lines (42 loc) · 1.51 KB
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
import os
import shutil
from setuptools import setup
import numpy
# clean previous build
for root, dirs, files in os.walk("./optimusprimal/", topdown=False):
for name in dirs:
if (name == "build"):
shutil.rmtree(name)
from os import path
this_directory = path.abspath(path.dirname(__file__))
def read_requirements(file):
with open(file) as f:
return f.read().splitlines()
def read_file(file):
with open(file) as f:
return f.read()
long_description = read_file(".pip_readme.rst")
required = read_requirements("requirements/requirements-core.txt")
include_dirs = [numpy.get_include(),]
extra_link_args=[]
setup(
classifiers=['Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research'
],
name = "optimusprimal",
version = "0.0.2",
prefix='.',
url='https://github.com/astro-informatics/Optimus-Primal',
author='Luke Pratley & Matthijs Mars & Matthew Price & Jason McEwen & Contributors',
author_email='luke.pratley@gmail.com',
license='GNU General Public License v3 (GPLv3)',
install_requires=required,
description='Convex Optimization Primal Dual Solver',
long_description_content_type = "text/x-rst",
long_description=long_description,
packages=['optimusprimal']
)