Dont strip binary wheels

This commit is contained in:
adisbladis 2020-01-17 18:06:09 +00:00
parent 719f74ef4c
commit 224973c59c
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -84,14 +84,20 @@ pythonPackages.callPackage (
baseBuildInputs = lib.optional (name != "setuptools_scm" && name != "setuptools-scm") pythonPackages.setuptools_scm; baseBuildInputs = lib.optional (name != "setuptools_scm" && name != "setuptools-scm") pythonPackages.setuptools_scm;
format = if isLocal then "pyproject" else if isGit then "setuptools" else fileInfo.format;
in in
buildPythonPackage { buildPythonPackage {
pname = name; pname = name;
version = version; version = version;
inherit format;
doCheck = false; # We never get development deps doCheck = false; # We never get development deps
format = if isLocal then "pyproject" else if isGit then "setuptools" else fileInfo.format;
# Stripping pre-built wheels lead to `ELF load command address/offset not properly aligned`
dontStrip = format == "wheel";
nativeBuildInputs = if (!isSource && (getManyLinuxDeps fileInfo.name).str != null) then [ autoPatchelfHook ] else []; nativeBuildInputs = if (!isSource && (getManyLinuxDeps fileInfo.name).str != null) then [ autoPatchelfHook ] else [];
buildInputs = ( buildInputs = (