]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
poe: scripts: use PyPI instead of Poetry
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 29 Jun 2026 14:42:20 +0000 (16:42 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Tue, 30 Jun 2026 23:11:37 +0000 (01:11 +0200)
poe
scripts/poe-tasks/check-files
scripts/poe-tasks/run

diff --git a/poe b/poe
index 815428a37f55057096543851caa9d3f71c2dd5e8..ae4c949d0205a5a84e81e892545ebc08250f0ece 100755 (executable)
--- a/poe
+++ b/poe
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 script_dir="$(dirname "$(readlink -f "$0")")"
-exec poetry --directory "$script_dir" run -- poe --root "$script_dir" "$@"
+poe --root "$script_dir" "$@"
index ef2f18610c5e207ddc4b3463330b717f4480f4bb..9b8d8b2d91cbf34d843d0e801ff2642f64bd1f12 100755 (executable)
@@ -9,14 +9,14 @@ set +e
 
 # check that all dependencies are installed correctly
 echo -e "${yellow}Checking that all dependencies are properly installed...${reset}"
-poetry install --dry-run --only main,dev,lint | grep "0 install" > /dev/null
+! python -m pip install --dry-run ".[prometheus,watchdog,dev,test,lint,docs]" | grep -qE "^Would install .{20,}$"
 check_rv $?
 echo
 
 # early exit when dependencies are not installed
 if test "$aggregated_rv" -ne "0"; then
        echo -e "${red}Dependencies are not properly installed. Run this command to fix it:${reset}"
-       echo -e "  ${red}poetry install${reset}"
+       echo -e "  ${red}python -m pip install ".[prometheus,watchdog,dev,test,lint,docs]"${reset}"
        exit 1
 fi
 
index 4d3ebc8cc15e8d84914948f53e81a9260947a2ff..fec296df159fb7039f039dc596de026a04863d80 100755 (executable)
@@ -13,23 +13,12 @@ echo Creating missing runtime directories
 echo ------------------------------------
 mkdir -vp $KRES_DEV_INSTALL_DIR/run/knot-resolver $KRES_DEV_INSTALL_DIR/var/cache/knot-resolver
 echo
-echo ---------------------------------------
-echo Building Python komponents using Poetry
-echo ---------------------------------------
-poetry build
-# copy native modules from build directory to source directory
-shopt -s globstar
-shopt -s nullglob
-for d in build/lib*; do
-    for f in "python/$d/"**/*.so; do
-        cp -v "$f" ${f#"python/$d/"}
-    done
-done
-shopt -u globstar
-shopt -u nullglob
-
+echo ------------------------------------------------------
+echo Building/installing Python components using setuptools
+echo ------------------------------------------------------
+python -m pip install -e .
 echo
-echo --------------------------------------
-echo Starting Knot Resolver wit the Manager
-echo --------------------------------------
-python3 -m knot_resolver.manager --config "$KRES_DEV_CONFIG_FILE" "$@"
+echo ----------------------
+echo Starting Knot Resolver
+echo ----------------------
+knot-resolver --config "$KRES_DEV_CONFIG_FILE" "$@"