]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
python: meson constants.py template moved to knot_resolver module
authorAleš Mrázek <ales.mrazek@nic.cz>
Thu, 19 Sep 2024 13:43:30 +0000 (15:43 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 30 Sep 2024 09:16:07 +0000 (11:16 +0200)
meson.build
python/knot_resolver/constants.py.in [moved from python/constants.py.in with 100% similarity]
python/knot_resolver/meson.build [moved from python/meson.build with 100% similarity]
scripts/poe-tasks/check
scripts/poe-tasks/configure
scripts/poe-tasks/doc-schema
scripts/poe-tasks/gen-constantspy

index 85c69fa79eaf23de33c92abd0b31a63d3055da8c..82035cecc4125c73c3ae9fc8a1b8e4785fd5a127 100644 (file)
@@ -275,7 +275,7 @@ subdir('lib')
 ## Remaining code
 subdir('daemon')
 subdir('modules')
-subdir('python')
+subdir('python' / 'knot_resolver')
 subdir('utils')
 if get_option('bench') == 'enabled'
   subdir('bench')
index 7acd65b717129ff8ce9e52e1d67e8db37b45a46f..8cae7fdc9b5b6723e0c8efd0baa3a711e2f23a28 100755 (executable)
@@ -71,7 +71,7 @@ echo
 # check python/knot_resolver/constants.py
 echo -e "${yellow}python/knot_resolver/constants.py${reset}"
 meson_setup_configure > /dev/null
-diff python/knot_resolver/constants.py $build_dir/python/constants.py
+diff python/knot_resolver/constants.py $build_dir/python/knot_resolver/constants.py
 check_rv $?
 echo
 
index 8e4fff066b03c6db136eb65cadd15839e44ce68e..dc4aa0748f9d78a88bd9f04b7bfe40768ff27855 100755 (executable)
@@ -10,5 +10,5 @@ echo
 echo -----------------------------------------------
 echo Copying constants.py module configured by Meson
 echo -----------------------------------------------
-cp -v $build_dev_dir/python/constants.py $gitroot/python/knot_resolver/constants.py
+cp -v $build_dev_dir/python/knot_resolver/constants.py $gitroot/python/knot_resolver/constants.py
 echo
index ff7dea46973c4c53365b2a56fe07a5ff25835c4d..33ea3bd6d6dcc645cd77a38ee3dd313d3d6bc4a0 100755 (executable)
@@ -7,7 +7,7 @@ source $src_dir/utils/_env.sh
 schema_file="$gitroot/doc/_static/config.schema.json"
 
 meson_setup_configure > /dev/null
-cp $build_dir/python/constants.py $gitroot/python/knot_resolver/constants.py
+cp $build_dir/python/knot_resolver/constants.py $gitroot/python/knot_resolver/constants.py
 python -m knot_resolver.client schema > $schema_file
 
 echo New configuration JSON schem saved to $schema_file
\ No newline at end of file
index f71f157751983f4bac922e87a19b5f4cabb737e7..0f3bb3b68bfdaff20bc0d3e393512b639dfd646b 100755 (executable)
@@ -10,5 +10,5 @@ echo
 echo -----------------------------------------------
 echo Copying constants.py module configured by Meson
 echo -----------------------------------------------
-cp -v $build_dir/python/constants.py $gitroot/python/knot_resolver/constants.py
+cp -v $build_dir/python/knot_resolver/constants.py $gitroot/python/knot_resolver/constants.py
 echo
\ No newline at end of file