File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.5.1
4+ - Support llvmlite 0.45.0
5+
36## 0.5.0
47- Overhaul of the nonlinear programming interface and now PyOptInterface can solve nonlinear programming problems with COPT, Gurobi and IPOPT.
58- Use ` model.add_linear_constraint(x+y, (1.0, 2.0)) ` to add two-sided linear constraints
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44
55[project ]
66name = " pyoptinterface"
7- version = " 0.5.0 "
7+ version = " 0.5.1 "
88description = " Python interface to multiple optimization solvers"
99readme = " README.md"
1010requires-python = " >=3.9"
Original file line number Diff line number Diff line change 11from llvmlite import ir , binding
2- import atexit
32
43from typing import List
54
65# Initialize LLVM
7- binding .initialize ()
6+ try :
7+ # llvmlite older than 0.45.0 still requires this
8+ binding .initialize ()
9+ except Exception :
10+ pass
11+
812binding .initialize_native_target ()
913binding .initialize_native_asmprinter ()
1014
11- # Register shutdown function to clean up LLVM resources
12- atexit .register (binding .shutdown )
13-
1415
1516class LLJITCompiler :
1617 def __init__ (self ):
You can’t perform that action at this time.
0 commit comments