Skip to content

Commit fe4a579

Browse files
committed
install only compatible versions of Pyomo and pyutilib
1 parent eef6fa8 commit fe4a579

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,13 @@ def read(*rnames):
6060
'production cost', 'capacity expansion',
6161
'planning', 'optimization'
6262
],
63+
python_requires='>=2.7.12',
6364
install_requires=[
64-
'Pyomo>=4.4.1', # We need a version that works with glpk 4.60+
65+
# Pyomo 4.4.1+ works with glpk 4.60+
66+
'Pyomo >=4.4.1, <=5.6.8',
67+
# pyutilib 6.0 breaks compatibility, and earlier versions of Pyomo
68+
# will cheerfully install it, so we explicitly block it
69+
'pyutilib <=5.7.3',
6570
'pint', # needed by Pyomo when we run our tests, but not included
6671
'testfixtures', # used for standard tests
6772
'pandas', # used for input upgrades and testing that functionality

0 commit comments

Comments
 (0)