Merge pull request #209247 from acairncross/onnx-1.13.0
python3Packages.onnx: 1.12.0 -> 1.13.0
This commit is contained in:
commit
746a47bea0
|
@ -17,14 +17,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "onnx";
|
pname = "onnx";
|
||||||
version = "1.12.0";
|
version = "1.13.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-E7PnfSdSO52/TzDfyclZRVhZ1eNOkhxE9xLWm4Np7/k=";
|
sha256 = "sha256-QQs5lQNnhX+XtlCTaB/iSVouI9Y3d6is6vlsVqFtFm4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -50,9 +50,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x tools/protoc-gen-mypy.sh.in
|
chmod +x tools/protoc-gen-mypy.sh.in
|
||||||
patchShebangs tools/protoc-gen-mypy.py
|
patchShebangs tools/protoc-gen-mypy.sh.in
|
||||||
substituteInPlace tools/protoc-gen-mypy.sh.in \
|
'';
|
||||||
--replace "/bin/bash" "${bash}/bin/bash"
|
|
||||||
|
# Set CMAKE_INSTALL_LIBDIR to lib explicitly, because otherwise it gets set
|
||||||
|
# to lib64 and cmake incorrectly looks for the protobuf library in lib64
|
||||||
|
preConfigure = ''
|
||||||
|
export CMAKE_ARGS="-DCMAKE_INSTALL_LIBDIR=lib -DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
|
Loading…
Reference in a new issue