check for breakpoint() function in code
This commit is contained in:
@@ -79,6 +79,11 @@ python3.pkgs.buildPythonPackage {
|
||||
'';
|
||||
checkPhase = ''
|
||||
PYTHONPATH= $out/bin/clan --help
|
||||
if grep --include \*.py -q "breakpoint()" $out; then
|
||||
echo "breakpoint() found in $out:"
|
||||
grep --include \*.py -Rn "breakpoint()" $out
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
meta.mainProgram = "clan";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user