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/11771...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to