summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/transformers/Manifest2
-rw-r--r--sci-libs/transformers/transformers-4.37.2.ebuild (renamed from sci-libs/transformers/transformers-4.36.2.ebuild)23
2 files changed, 14 insertions, 11 deletions
diff --git a/sci-libs/transformers/Manifest b/sci-libs/transformers/Manifest
index 67683244b7fe..ace196dbfd29 100644
--- a/sci-libs/transformers/Manifest
+++ b/sci-libs/transformers/Manifest
@@ -1 +1 @@
-DIST transformers-4.36.2.gh.tar.gz 16379041 BLAKE2B 3cd8dd9949e97971cf116e79327782a59a98df58ffeebafd4cf37009e805f8c332dd9739f1c6f5f627db0c7cc7a286329727740a6b5d701b05d0dc5201ce985d SHA512 e2f07f49f7ad0141dbb1ad594e7e1e0ab91c0b199d7f63e8396f4d6b58dbcf8f9004b9e809ad641950a9616d7755f0cd21fa332f47cbb9606a346a0184baa7b5
+DIST transformers-4.37.2.gh.tar.gz 16632049 BLAKE2B 22501598da911cb685598cb3b33e157ef091425c0c7478d05a0af396c182e8f776435d6b2fe708eaf2550ce6136f195ffac3b464f357ae8e023a030c218fcd3d SHA512 37bdf35e0774f7f26a19465b5e5c64709a85a1d001e01382996891173c59d6e31c1b536ef186b9d6a3dbe85e658ac3bf11f78e2e7f73c6d1d18992035afe3852
diff --git a/sci-libs/transformers/transformers-4.36.2.ebuild b/sci-libs/transformers/transformers-4.37.2.ebuild
index d115e34a5797..729e1ae55368 100644
--- a/sci-libs/transformers/transformers-4.36.2.ebuild
+++ b/sci-libs/transformers/transformers-4.37.2.ebuild
@@ -5,6 +5,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow"
@@ -21,16 +22,18 @@ KEYWORDS="~amd64"
RESTRICT="test" # Need some modules, not yet packaged
RDEPEND="
- dev-python/filelock[${PYTHON_USEDEP}]
- sci-libs/huggingface_hub[${PYTHON_USEDEP}]
- dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- dev-python/pyyaml[${PYTHON_USEDEP}]
- dev-python/regex[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]
- sci-libs/safetensors[${PYTHON_USEDEP}]
- sci-libs/tokenizers[${PYTHON_USEDEP}]
- dev-python/tqdm[${PYTHON_USEDEP}]
+ sci-libs/tokenizers[${PYTHON_SINGLE_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/filelock[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/regex[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+ sci-libs/huggingface_hub[${PYTHON_USEDEP}]
+ >=sci-libs/safetensors-0.4.1[${PYTHON_USEDEP}]
+ ')
"
distutils_enable_tests pytest