On Thu, Aug 26, 2010 at 1:30 PM, Chris Withers <[email protected]> wrote: > Hi All, > > Some packages include things which aren't python, they may even have .py > extensions though. > > Installing these using easy_install/buildout/pip/etc results in this kind of > (harmless) ugliness: > > SyntaxError: ("'return' outside function", > ('build/bdist.macosx-10.3-fat/egg/Products/ZSyncer/skins/zsyncer_skins/get_zsyncer_status_for_objects.py', > 21, None, 'return statuses\n')) > > How can I make that not happen?
By preventing Distutils to do the bytecode compiling when it builds/install the package. (this was discussed lately as a possible change) The other option is to have the ZSyncer project treat these files as data files, so they don't get compiled > > Chris > > -- > Simplistix - Content Management, Batch Processing & Python Consulting > - http://www.simplistix.co.uk > _______________________________________________ > Distutils-SIG maillist - [email protected] > http://mail.python.org/mailman/listinfo/distutils-sig > -- Tarek Ziadé | http://ziade.org _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
