forked from Pyomo/pyomo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path__init__.py
32 lines (28 loc) · 1.12 KB
/
__init__.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
# ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright (c) 2008-2024
# National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC, the U.S. Government retains certain
# rights in this software.
# This software is distributed under the 3-clause BSD License.
# ___________________________________________________________________________
from . import common
from .version import __version__
#
# declare deprecation paths for removed modules
#
from pyomo.common.deprecation import moved_module
moved_module(
'pyomo.pysp',
'pysp',
version='6.0',
msg="PySP has been removed from the pyomo.pysp namespace. "
"Beginning in Pyomo 6.0, PySP is distributed as a separate "
"package. Please see https://github.com/Pyomo/pysp for "
"information on downloading and installing PySP",
)
# (*silently*) redirect 'pyomo.__future__' to 'pyomo.future'
moved_module('pyomo.__future__', 'pyomo.future', msg=None)
del moved_module