[Rpm-maint] [rpm-software-management/rpm] Regex support while packaging files with %ghost (Discussion #3480)
Shreenidhi Shedi
notifications at github.com
Wed Jan 8 09:25:38 UTC 2025
Sorry for the confusion.
> Did you actually try it?
I am aware that regex works while packaging files. But I want to use regex with ghost files.
```
%ghost %{python3_sitelib}/__pycache__
%ghost %{python3_sitelib}/__pycache__/*.pyc
```
Both `__pycache__` and the `*.pyc` are not present while the rpm is built and get created when I import the module after installing the rpm and I want those newly created pyc files and __pycache__ dir to go away when I remove the package by using ghost clause.
> Whether it actually works in combination with %ghost I have no idea.
This. I am trying it out and it doesn't work.
> As for your use-case for wanting to avoid bloating packages with redundant .pyc files: you might want to research the background as to why they are included in packages. There are multiple reasons for it, and none of them is "for fun".
I understand your point, it's just a standard we are following in our distro. Thanks for the inputs.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3480#discussioncomment-11771063
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/3480/comments/11771063 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250108/b27bc0e4/attachment.htm>
More information about the Rpm-maint
mailing list