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

external:pypi:foo should generate python3.9dist(foo) provides too #672

Open
xsuchy opened this issue Dec 2, 2020 · 4 comments
Open

external:pypi:foo should generate python3.9dist(foo) provides too #672

xsuchy opened this issue Dec 2, 2020 · 4 comments
Labels
enhancement feature request, rfe

Comments

@xsuchy
Copy link
Member

xsuchy commented Dec 2, 2020

This is automatic requires/provides handled by Python and we should generate it with create-fake-rpm as well.

@xsuchy xsuchy added the enhancement feature request, rfe label Dec 6, 2020
@xsuchy
Copy link
Member Author

xsuchy commented Jul 2, 2021

@hroncok Do you know how I can retrieve the current X.Y for "pythonX.Ydist" string? Or even better the whole ""pythonX.Ydist" string?

@hroncok
Copy link
Contributor

hroncok commented Jul 2, 2021 via email

@hroncok
Copy link
Contributor

hroncok commented Jul 2, 2021

I can draft a proof of concept later today.

@hroncok
Copy link
Contributor

hroncok commented Jul 2, 2021

pythondist_path="$(rpm --eval '%__pythondist_path')"
pythondist_provides="$(rpm --eval '%__pythondist_provides')"

find / 2> /dev/null | egrep "$pythondist_path" | while read path; do rpm -qf "$path" >& /dev/null || echo "$path"; done | $pythondist_provides

This should give you all provides of all Python packages not already packaged as RPMs.

It requires python3-rpm-geneartors to be installed. If you want to execute this from a bootstrap chroot, it needs further changes.

Obviously, it is naïve and very slow on large chroots.

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

No branches or pull requests

2 participants