python3Packages.executorch: 1.2.0 -> 1.3.1 (#490038)
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
}:
|
||||
buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
|
||||
pname = "executorch";
|
||||
version = "1.2.0";
|
||||
version = "1.3.1";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
@@ -68,7 +68,7 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
|
||||
name = "executorch";
|
||||
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-Rkw6+keOygQaf6iOCpGoW9JgXiCimgx8gsxLEH3bxME=";
|
||||
hash = "sha256-UyMPY+qYTHYZDeftj4YVqzO2ibTswzd+HWW5JeXHW0Q=";
|
||||
};
|
||||
|
||||
postPatch =
|
||||
@@ -76,8 +76,8 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
|
||||
''
|
||||
substituteInPlace exir/_serialize/_flatbuffer.py \
|
||||
--replace-fail \
|
||||
'flatc_path = "flatc"' \
|
||||
'flatc_path = "${lib.getExe pkgs.flatbuffers}"'
|
||||
'_flatc_cached_path = os.getenv("FLATC_EXECUTABLE", "flatc")' \
|
||||
'_flatc_cached_path = os.getenv("FLATC_EXECUTABLE", "${lib.getExe pkgs.flatbuffers}")'
|
||||
''
|
||||
# Relax build-system dependencies
|
||||
+ ''
|
||||
@@ -102,13 +102,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
|
||||
|
||||
sed -i "1i #include <cstdint>" backends/apple/coreml/runtime/inmemoryfs/memory_buffer.hpp
|
||||
sed -i "1i #include <cstdint>" extension/llm/tokenizers/third-party/sentencepiece/src/sentencepiece_processor.h
|
||||
''
|
||||
# AssertionError: '1.3.0' != '0.1.0'
|
||||
+ ''
|
||||
substituteInPlace extension/llm/tokenizers/test/test_python_bindings.py \
|
||||
--replace-fail \
|
||||
'self.assertEqual(pytorch_tokenizers.__version__, "0.1.0")' \
|
||||
'self.assertEqual(pytorch_tokenizers.__version__, "${pytorch-tokenizers.version}")'
|
||||
'';
|
||||
|
||||
env = {
|
||||
|
||||
Reference in New Issue
Block a user