-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (50 loc) · 1.63 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
import setuptools
import os
version = {}
with open(os.path.join('nsbplib', 'version.py')) as fp:
exec(fp.read(), version)
__version__ = version['__version__']
try:
from numpy.distutils.core import setup, Extension
except ModuleNotFoundError:
print('Numpy is required to install this package')
try:
import pyproximal
except ModuleNotFoundError:
print('Pyproximal is required to install this package')
try:
import trustregion
except ModuleNotFoundError:
print('Trustregion is required to install this package')
try:
import pandas
except ModuleNotFoundError:
print('Pandas is required to install this package')
try:
import PIL
except ModuleNotFoundError:
print('Pillow is required to install this package')
try:
import skimage
except ModuleNotFoundError:
print('Scikit-Image is required to install this package')
# Main package setup
setup(
name='nsbplib',
version=__version__,
description='Nonsmooth Bilevel Parameter Learning Library',
long_description=open('README.md').read(),
author='David Villacís',
author_email='[email protected]',
packages=['nsbplib'],
license='GNU GPL',
keywords='variational solvers image processing parameter learning bilevel optimization',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering :: Mathematics',
],
install_requires=['numpy', 'scipy', 'pylops', 'pyproximal','trustregion','pandas','pillow','scikit-image'],
)