-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Requires: cmake py2-numpy protobuf py2-protobuf py2-six py2-typing_extensions | ||
Requires: py3-numpy py2-pytest-runner | ||
Requires: cmake py2-numpy protobuf py2-protobuf py2-six py2-typing_extensions py3-numpy py2-pytest-runner | ||
Patch0: py2-onnx | ||
|
||
%define PipPreBuild export ONNX_ML=1 | ||
%define RelocatePython %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 8351a52..613ea76 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -226,7 +226,7 @@ function(RELATIVE_PROTOBUF_GENERATE_CPP NAME SRCS HDRS ROOT_DIR DEPEND) | ||
${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR}) | ||
if(BUILD_ONNX_PYTHON) | ||
list(APPEND PROTOC_ARGS --python_out | ||
- ${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR}) | ||
+ ${CMAKE_CURRENT_BINARY_DIR}) | ||
if(ONNX_GEN_PB_TYPE_STUBS) | ||
# Haven't figured out how to generate mypy stubs on Windows yet | ||
if(NOT WIN32) |