-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (32 loc) · 829 Bytes
/
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
from setuptools import setup, find_packages
import subprocess
import sys
from warnings import warn
def install_optional_package(package):
try:
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
except subprocess.CalledProcessError:
warn(f"Warning: {package} could not be installed. Continuing without it.")
# Attempt to install the optional package
install_optional_package('pypoman')
setup(
name='PyomoTools',
version='0.2.5',
packages=find_packages(),
include_package_data=True,
install_requires=[
'pyomo',
'pandas',
'pwlf',
'matplotlib',
'numpy',
'pytest',
'XlsxWriter',
'openpyxl',
'highspy',
'scipy'
],
extras_require={
'optional': ['pypoman']
}
)