python312Packages.faiss: skip broken distutils branch on aarch64-linux (#347735)

This commit is contained in:
Someone 2024-10-11 09:06:30 +00:00 committed by GitHub
commit b22c9f124a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View File

@ -48,11 +48,18 @@ stdenv.mkDerivation {
src = fetchFromGitHub {
owner = "facebookresearch";
repo = pname;
rev = "v${version}";
repo = "faiss";
rev = "refs/tags/v${version}";
hash = "sha256-P8TynU6jz5NbcWLdI7n4LX5Gdz0Ks72bmOzQ3LGjQCQ=";
};
postPatch = lib.optionalString pythonSupport ''
substituteInPlace faiss/python/loader.py \
--replace-fail \
"# platform-dependent legacy fallback using numpy.distutils.cpuinfo" \
"return False"
'';
nativeBuildInputs =
[ cmake ]
++ lib.optionals cudaSupport [
@ -63,7 +70,6 @@ stdenv.mkDerivation {
pythonPackages.python
pythonPackages.setuptools
pythonPackages.pip
pythonPackages.wheel
];
buildInputs =

View File

@ -7,7 +7,6 @@
packaging,
setuptools,
pip,
wheel,
}:
buildPythonPackage {
@ -24,7 +23,6 @@ buildPythonPackage {
build-system = [
setuptools
pip
wheel
];
dependencies = [