hi, I added a temporary runtime check and warning into lib/__init__.py
This way it can warn people who have installed from other installers (.exe .msi, dmg deb etc etc). We can remove it from the final release... since the camera.so hasn't been in any official releases. Since leaving it there will slow down things a bit. distutils doesn't seem to have any remove old files functionality unfortunately. I remember we did something similar with color.pyd previously in the windows installer (and maybe elsewhere?). I've made a bug report about it to python here: http://bugs.python.org/issue5342 There's some new activity in fixing up distutils recently, so it's worthwhile reporting bugs now. (whereas previously bugs have sat there since 2001 :) cheers! On Sun, Feb 22, 2009 at 9:05 AM, René Dudfield <[email protected]> wrote: > hey, > > with the camera.so now being _camera.so and camera.py being included, > I would like to make sure camera.so and camera.pyd are deleted from > the installed place. Otherwise python looks at .so and .pyd files > over .py files, and badness happens. > > Does distutils allow doing this? It seems to just copy over the top usually. > > Failing that, I'd like to make sure the .py file is imported, rather > than the .so or .pyd. >
