I have a proxy written in python. I want to create an RPM for this. This rpm will just place the appropriate files at their location. and then some python server will pick them. Now my question is that whenever I generate the rpm, I am getting .pyo and .pyc files as well for every .py file. I don't need those pyc and pyo files. Is there any flag or anything that I can do to remove them?
Thank you.
I have excluded these .pyc and .pyo files from getting packaged into the RPM by adding lines like this in your RPM specfile:
%files
...
...
%exclude /path_to_files/*.pyc
%exclude /path_to_files/*.pyo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With