move breakpoint checks out of default build
this allows to debug builds with breakpoints
This commit is contained in:
@@ -132,6 +132,14 @@ python3.pkgs.buildPythonApplication {
|
|||||||
${checkPython}/bin/python -m pytest -m "not impure" -s ./tests
|
${checkPython}/bin/python -m pytest -m "not impure" -s ./tests
|
||||||
touch $out
|
touch $out
|
||||||
'';
|
'';
|
||||||
|
check-for-breakpoints = runCommand "breakpoints" { } ''
|
||||||
|
if grep --include \*.py -Rq "breakpoint()" ${source}; then
|
||||||
|
echo "breakpoint() found in ${source}:"
|
||||||
|
grep --include \*.py -Rn "breakpoint()" ${source}
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
touch $out
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
passthru.clan-openapi = runCommand "clan-openapi" { } ''
|
passthru.clan-openapi = runCommand "clan-openapi" { } ''
|
||||||
cp -r ${source} ./src
|
cp -r ${source} ./src
|
||||||
@@ -167,11 +175,6 @@ python3.pkgs.buildPythonApplication {
|
|||||||
'';
|
'';
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
PYTHONPATH= $out/bin/clan --help
|
PYTHONPATH= $out/bin/clan --help
|
||||||
if grep --include \*.py -Rq "breakpoint()" $out; then
|
|
||||||
echo "breakpoint() found in $out:"
|
|
||||||
grep --include \*.py -Rn "breakpoint()" $out
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
'';
|
'';
|
||||||
meta.mainProgram = "clan";
|
meta.mainProgram = "clan";
|
||||||
desktopItems = [
|
desktopItems = [
|
||||||
|
|||||||
Reference in New Issue
Block a user