Hi All,

I am trying to build an ISO for a python project on a Fedora environment. I want to make my iso secure by not including source file code in it.

Is there any way to generate a rpm for my source code that do not contain any .py files and contains only .pyc files. It will be really helpful

Thanks,
Saurabh

That might be more of a rpm packaging question. You can just run the python module compileall to compile all *.py files in a directory (recursively by default) to *.pyc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.