diff options
author | mirh | 2019-12-24 19:09:03 +0100 |
---|---|---|
committer | mirh | 2019-12-24 19:11:06 +0100 |
commit | c1b7ed059bff7030a07bdba5aa2a0faa4663d3aa (patch) | |
tree | 51b79919745b320b34c59195abdf4293aec7ec7b /python38.patch | |
parent | e81f45232fd0f830170b5996bb79e47bbff0e3d8 (diff) | |
download | aur-c1b7ed059bff7030a07bdba5aa2a0faa4663d3aa.tar.gz |
Python 3.8 fix. Hopefully it should still work with the new computecpp.
I also tried to skip the "zip and unzip" stupid step, copying some line from build_pip_package.sh and with some wheel-fu.. But only pip at install time seems able to handle entry_points.txt for scripts
Diffstat (limited to 'python38.patch')
-rw-r--r-- | python38.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/python38.patch b/python38.patch new file mode 100644 index 000000000000..0d32ef2f8e00 --- /dev/null +++ b/python38.patch @@ -0,0 +1,39 @@ +diff --git a/tensorflow/python/eager/pywrap_tfe_src.cc b/tensorflow/python/eager/pywrap_tfe_src.cc +index 6c9481c3af..eb61a962ff 100644 +--- a/tensorflow/python/eager/pywrap_tfe_src.cc ++++ b/tensorflow/python/eager/pywrap_tfe_src.cc +@@ -956,7 +956,7 @@ static PyTypeObject TFE_Py_Tape_Type = { + sizeof(TFE_Py_Tape), /* tp_basicsize */ + 0, /* tp_itemsize */ + &TFE_Py_Tape_Delete, /* tp_dealloc */ +- nullptr, /* tp_print */ ++ 0, /* tp_print */ + nullptr, /* tp_getattr */ + nullptr, /* tp_setattr */ + nullptr, /* tp_reserved */ +diff --git a/tensorflow/python/lib/core/bfloat16.cc b/tensorflow/python/lib/core/bfloat16.cc +index 77fa2c1f66..28308e0cff 100644 +--- a/tensorflow/python/lib/core/bfloat16.cc ++++ b/tensorflow/python/lib/core/bfloat16.cc +@@ -317,7 +317,7 @@ PyTypeObject PyBfloat16_Type = { + sizeof(PyBfloat16), // tp_basicsize + 0, // tp_itemsize + nullptr, // tp_dealloc +- nullptr, // tp_print ++ 0, // tp_print + nullptr, // tp_getattr + nullptr, // tp_setattr + nullptr, // tp_compare / tp_reserved +diff --git a/tensorflow/python/lib/core/ndarray_tensor_bridge.cc b/tensorflow/python/lib/core/ndarray_tensor_bridge.cc +index 0d5838505f..95bfe24dde 100644 +--- a/tensorflow/python/lib/core/ndarray_tensor_bridge.cc ++++ b/tensorflow/python/lib/core/ndarray_tensor_bridge.cc +@@ -86,7 +86,7 @@ PyTypeObject TensorReleaserType = { + 0, /* tp_itemsize */ + /* methods */ + TensorReleaser_dealloc, /* tp_dealloc */ +- nullptr, /* tp_print */ ++ 0, /* tp_print */ + nullptr, /* tp_getattr */ + nullptr, /* tp_setattr */ + nullptr, /* tp_compare */ |