Skip to content

Commit 30d0961

Browse files
adjust gurobi config (#616) (#618)
(cherry picked from commit 40743dd) Co-authored-by: Takashi Imamichi <[email protected]>
1 parent c23bd6c commit 30d0961

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
"cplex": ["cplex; python_version < '3.12' and platform_machine != 'arm64'"],
7878
"cvx": ["cvxpy"],
7979
"matplotlib": ["matplotlib"],
80-
"gurobi": ["gurobipy"],
80+
"gurobi": [
81+
"gurobipy; platform_machine != 'arm64' or python_version >= '3.9' and platform_machine == 'arm64'"
82+
],
8183
},
8284
project_urls={
8385
"Bug Tracker": "https://github.com/qiskit-community/qiskit-optimization/issues",

0 commit comments

Comments
 (0)