List:GUI Tools« Previous MessageNext Message »
From:Remi Collet Date:September 21 2010 4:26pm
Subject:[5.2.28] Python issue during RPM build
View as plain text  
Hi,

The standard RPM build process include a python byte compile phase.
(which seems disabled in the RPM provided on MySQL site)

Some scripts have problems

1 script have indent problem which breaks this :

# python res/scripts/snippets/shell_snippets.py
   File "res/scripts/snippets/shell_snippets.py", line 2
     for schema in grt.root.wb.doc.physicalModels[0].catalog.schemata:
     ^
IndentationError: unexpected indent

Can you tell me if this is expected ?
	- is this script executed
	- is this script user in some other way

It seems that Scripts in script_templates are only template (so never 
executed), and shouldn't be compiled. I can disable this, but this is 
not a good pratice. It should be "safer" to have this not-real python 
script to have another extension than .py

Thanks, in advance, for your response

Regards
Remi.
Thread
[5.2.28] Python issue during RPM buildRemi Collet21 Sep