[Distutils] Erasing *.py after install

M.-A. Lemburg mal@lemburg.com
Mon Jul 8 09:46:15 2002


Michael Hudson wrote:
> Jack Jansen <Jack.Jansen@cwi.nl> writes:
> 
> 
>>On Monday, July 8, 2002, at 02:52 , Ville Vainio wrote:
>>
>>
>>>Occasionally there is a need to delete the *.py files (but leave *.pyc 
>>>and *.pyo) after installation, in order to protect some proprietary 
>>>stuff (not just embarrassing hacks ;-). It would be quite nice to have 
>>>this option in distutils. Or is it there already?
>>
>>If you want this shouldn't you just distribute the .pyc or .pyo files? 
>>It's false security to think that people won't be able to get at your 
>>sources if the .py files are part of the distribution...
> 
> 
> It's arguably false security to think that sufficiently determined
> people won't be able to get at your .pys if you distribute only your
> .pycs...

Indeed, decompyle does wonders here. The resulting code is sometimes
even better formatted than the original ;-)

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/