How to achieve pyc only deployment for module in python3.6
On Tue, Oct 2, 2018, 08:42 Chris Angelico <rosuav at gmail.com> wrote:
> On Tue, Oct 2, 2018 at 12:01 PM Chandana Pattanayak
> <chandana.pattanayak at patterneffectslabs.com> wrote:
> > Hi,
> > I have a requirement to provide basic code protection for a module in our
> > product suite. With python 3.6 the .pyc files are created under pycache ,
> > so if i remove the py file the module is not found anymore.
> If you want code protection, the ONLY reliable way to do it is to not
> provide the code *at all*, in any form.
I think Cython is a rather reliable way to do it. There is a nice post to
start with ?Protecting Python Sources With Cython? @2parrots
With kind regards,