python3Packages.pytorch-tokenizers: fix build by patching sentencepiece src
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
Submodule third-party/sentencepiece contains modified content
|
||||
diff --git a/third-party/sentencepiece/src/sentencepiece_processor.h b/third-party/sentencepiece/src/sentencepiece_processor.h
|
||||
index dd3f092..553fbff 100644
|
||||
--- a/third-party/sentencepiece/src/sentencepiece_processor.h
|
||||
+++ b/third-party/sentencepiece/src/sentencepiece_processor.h
|
||||
@@ -16,6 +16,7 @@
|
||||
#define SENTENCEPIECE_PROCESSOR_H_
|
||||
|
||||
#include <cstring>
|
||||
+#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@@ -45,6 +45,8 @@ buildPythonPackage rec {
|
||||
(replaceVars ./dont-fetch-pybind11.patch {
|
||||
pybind11 = pybind11-src;
|
||||
})
|
||||
# error: ‘uint32_t’ does not name a type
|
||||
./add-missing-cstdint-sentencepiece.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
||||
Reference in New Issue
Block a user