[Distutils] any way to stop buildout/setuptools compiling things that aren't python?

Tarek Ziadé ziade.tarek at gmail.com
Thu Aug 26 23:33:42 CEST 2010


On Thu, Aug 26, 2010 at 1:30 PM, Chris Withers <chris at simplistix.co.uk> 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  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>



-- 
Tarek Ziadé | http://ziade.org


More information about the Distutils-SIG mailing list