how to find site-packages path (Michael Hoffman) - use distutils/modified

Philippe C. Martin philippecmartin at
Wed Jan 19 04:46:14 EST 2005

Thanks David.


>>Hi Philippe

>>You may want to have a look at 

>>This was originally a patch to distutils which enabled removing the 
>>source (i.e. only distributing compiled files). I have now attached a 
>>file there which enables you to do the same thing, but without
>>distutils - it just wraps functions etc from outside.

>>Basically you call allow_distutils_remove_source in the module and it 
>>does the neccessary changes. Then you get a --remove-source options
>>most of the commands. You can also selectively override what gets 
>>removed if you want by changing the is_removable function

>>I hope this is useful for what you're wanting to do

Philippe C. Martin
SnakeCard LLC

More information about the Python-list mailing list