mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 21:49:34 +03:00
python312Packages.faiss: skip broken distutils branch on aarch64-linux (#347735)
This commit is contained in:
commit
b22c9f124a
2 changed files with 9 additions and 5 deletions
|
@ -48,11 +48,18 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "facebookresearch";
|
owner = "facebookresearch";
|
||||||
repo = pname;
|
repo = "faiss";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-P8TynU6jz5NbcWLdI7n4LX5Gdz0Ks72bmOzQ3LGjQCQ=";
|
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 =
|
nativeBuildInputs =
|
||||||
[ cmake ]
|
[ cmake ]
|
||||||
++ lib.optionals cudaSupport [
|
++ lib.optionals cudaSupport [
|
||||||
|
@ -63,7 +70,6 @@ stdenv.mkDerivation {
|
||||||
pythonPackages.python
|
pythonPackages.python
|
||||||
pythonPackages.setuptools
|
pythonPackages.setuptools
|
||||||
pythonPackages.pip
|
pythonPackages.pip
|
||||||
pythonPackages.wheel
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
packaging,
|
packaging,
|
||||||
setuptools,
|
setuptools,
|
||||||
pip,
|
pip,
|
||||||
wheel,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
|
@ -24,7 +23,6 @@ buildPythonPackage {
|
||||||
build-system = [
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
pip
|
pip
|
||||||
wheel
|
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue