-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test installation and import also on local system #4
Conversation
On openSUSE and Ubuntu pip tries to install to default system sitepackages dir, overwriting installed RPM bindings, and the installation fails. That's good, because it prevents breaking anything, I'm just wondering if there is a way to do it more cleanly. |
Worked for me fine: diff --git a/Makefile b/Makefile
index 1f38712..3e707ac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
TEST_IMAGE = rpm-shim-tests
-BASE_IMAGE ?=
-INSTALL_DEPS_CMD ?=
+BASE_IMAGE ?= fedora:38
+INSTALL_DEPS_CMD ?= dnf install -y python3-pip git-core
CONTAINER_ENGINE ?= $(shell command -v podman 2> /dev/null || echo docker) test run:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On openSUSE and Ubuntu pip tries to install to default system sitepackages dir, overwriting installed RPM bindings, and the installation fails. That's good, because it prevents breaking anything, I'm just wondering if there is a way to do it more cleanly.
Doesn't seem like worth bothering right now :)
Signed-off-by: Nikola Forró <[email protected]>
Signed-off-by: Nikola Forró <[email protected]>
It still fails here with
|
could the permision denied be selinux? are you mounting something inside? does simple |
Signed-off-by: Nikola Forró <[email protected]>
skipsdist prevents installing the shim in tox >= 4, and usedevelop is unnecessary and tox >= 4 emits warnings when it is enabled. Signed-off-by: Nikola Forró <[email protected]>
I'm not mounting anything (so I don't think selinux is involved in any way), touch works just fine. |
I've moved test-related files to a subdirectory and added a sanity check so even if the shim fails to install on a local system we verify that rpm can be imported and used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm.
Thanks. Merging manually. |
Note that☹️
python3 -m build
doesn't work with rootless podman, I can't figure out why