Skip to content
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

varikn fails to install in fedora:40 docker #20

Closed
thfrkielikone opened this issue Jun 5, 2024 · 8 comments
Closed

varikn fails to install in fedora:40 docker #20

thfrkielikone opened this issue Jun 5, 2024 · 8 comments

Comments

@thfrkielikone
Copy link

Hi,
I am trying to install varikn in a Fedora 40 docker container with python 3.12.3 and pip 23.3.2. Pip complains that certain information ("description", "authors", "license", "readme") is being sourced from outside the pyproject.toml and doesn't want to install (either through pip install . in the cloned repo or through the prebuilt package) it unless the source of that information is either moved to the pyproject.toml or marked as dynamic. Marking it as dynamic can seemingly be done per the patch below, which seems to be the easiest way to fix this (then it installs without complaint at least through pip install .). Can you reproduce this issue and would this be a reasonable fix?

diff --git a/pyproject.toml b/pyproject.toml
index b6f24b0..6547a30 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -8,7 +8,8 @@ build-backend = "setuptools.build_meta"
 
 [project]
 name = "varikn"
-dynamic = ["version"]
+dynamic = ["version", "description", "authors", "license", "readme"]
+
 
 [tool.setuptools_scm]
 write_to = "python-wrapper/varikn/_version.py"
@vsiivola
Copy link
Owner

vsiivola commented Jun 5, 2024

The patch looks good to me, I'll try it this weekend and merge if there are no problems. Thanks!

@vsiivola
Copy link
Owner

vsiivola commented Jun 6, 2024

It is in master, I hope it works now.

@vsiivola vsiivola closed this as completed Jun 6, 2024
@vsiivola
Copy link
Owner

vsiivola commented Jun 6, 2024

@svirpioj Should we do a version release to PYPI?

@thfrkielikone
Copy link
Author

Thank you very much for looking into this this quickly!

@vsiivola
Copy link
Owner

vsiivola commented Jun 7, 2024

I tagged version 1.2.1, let's see if the GitHub action for PYPI update still works 🤞

@vsiivola
Copy link
Owner

vsiivola commented Jun 7, 2024

Ok 1.2.1 is in PYPI, but doing source install from PYPI requires that cmake and swig are first installed manually. I wonder if that's how it always worked or if something broke...

@vsiivola
Copy link
Owner

vsiivola commented Jun 7, 2024

Looking at INSTALL.md I guess that's how it has always been.

@svirpioj
Copy link
Collaborator

Yeah, probably so. Seems everything is in order 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants