diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-02-02 13:25:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-02-02 13:44:44 +0000 |
commit | 449504fe6add73c8b0d212b153d70b3780701146 (patch) | |
tree | be10212f75630cc80b6021ffaa79805bbba73808 | |
parent | debian (FIXME) (diff) | |
download | compute-tools-449504fe6add73c8b0d212b153d70b3780701146.tar.xz compute-tools-449504fe6add73c8b0d212b153d70b3780701146.zip |
Adding initial compute-tools python module.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | python3/compute_tools/__init__.py | 20 | ||||
-rw-r--r-- | python3/compute_tools/container/__init__.py | 18 |
3 files changed, 56 insertions, 0 deletions
@@ -33,6 +33,10 @@ test: @echo -n "Checking for syntax errors with sh... " @for SCRIPT in $(SCRIPTS); \ do \ + if grep -qs /usr/bin/python3 $${SCRIPT}; \ + then \ + continue; \ + fi; \ sh -n $${SCRIPT}; \ echo -n "."; \ done @@ -43,6 +47,10 @@ test: then \ for SCRIPT in $(SCRIPTS); \ do \ + if grep -qs /usr/bin/python3 $${SCRIPT}; \ + then \ + continue; \ + fi; \ checkbashisms -f -x $${SCRIPT}; \ echo -n "."; \ done; \ @@ -57,6 +65,10 @@ test: then \ for SCRIPT in $(SCRIPTS); \ do \ + if grep -qs /usr/bin/python3 $${SCRIPT}; \ + then \ + continue; \ + fi; \ shellcheck $${SCRIPT} || true; \ echo -n "."; \ done; \ @@ -83,6 +95,9 @@ install: build mkdir -p $(DESTDIR)/usr/libexec cp -r libexec/* $(DESTDIR)/usr/libexec + mkdir -p $(DESTDIR)/usr/lib/python3/dist-packages + cp -r python3/* $(DESTDIR)/usr/lib/python3/dist-packages + mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE) cp -r VERSION.txt $(DESTDIR)/usr/share/$(SOFTWARE) cp -r share/config share/hooks share/keys share/build-scripts share/get-scripts $(DESTDIR)/usr/share/$(SOFTWARE) @@ -204,6 +219,9 @@ uninstall: rm -rf $(DESTDIR)/usr/share/$(SOFTWARE) rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share || true + rm -rf $(DESTDIR)/usr/lib/python3/dist-packages/compute_tools + rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/lib/python3/dist-packages + rm -rf $(DESTDIR)/usr/libexec/$(PROGRAM) rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/libexec || true diff --git a/python3/compute_tools/__init__.py b/python3/compute_tools/__init__.py new file mode 100644 index 0000000..563db06 --- /dev/null +++ b/python3/compute_tools/__init__.py @@ -0,0 +1,20 @@ +# Open Infrastructure: compute-tools + +# Copyright (C) 2014-2023 Daniel Baumann <daniel.baumann@open-infrastructure.net> +# +# SPDX-License-Identifier: GPL-3.0+ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. + +from .container import * diff --git a/python3/compute_tools/container/__init__.py b/python3/compute_tools/container/__init__.py new file mode 100644 index 0000000..8090205 --- /dev/null +++ b/python3/compute_tools/container/__init__.py @@ -0,0 +1,18 @@ +# Open Infrastructure: compute-tools + +# Copyright (C) 2014-2023 Daniel Baumann <daniel.baumann@open-infrastructure.net> +# +# SPDX-License-Identifier: GPL-3.0+ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. |