Skip to content

Commit da74d4b

Browse files
Fix broken wheels (#49)
* Added dontStrip to mkPython
1 parent 646eedf commit da74d4b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mach_nix/generators/overlay_generator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,17 @@ def _gen_builPythonPackage(self, name, ver, build_inputs_str, prop_build_inputs_
105105

106106
def _gen_wheel_buildPythonPackage(self, name, ver, prop_build_inputs_str, fname):
107107
manylinux = "manylinux1 ++ " if 'manylinux' in fname else ''
108+
109+
# dontStrip added due to this bug - https://github.com/pypa/manylinux/issues/119
108110
out = f"""
109111
{self._get_ref_name(name, ver)} = python-self.buildPythonPackage {{
110112
pname = "{name}";
111113
version = "{ver}";
112114
src = fetchPypiWheel "{name}" "{ver}" "{fname}";
113115
format = "wheel";
114116
doCheck = false;
115-
doInstallCheck = false;"""
117+
doInstallCheck = false;
118+
dontStrip = true;"""
116119
if manylinux:
117120
out += f"""
118121
nativeBuildInputs = [ autoPatchelfHook ];

0 commit comments

Comments
 (0)