[5.2.28] Python issue during RPM build

Remi Collet <[email protected]> Tue, 21 Sep 2010 18:26:07 +0200
Newsgroups gmane.comp.db.mysql.mycc
Message-ID <[email protected]>
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.

-- 
MySQL GUI Tools Mailing List
For list archives: http://lists.mysql.com/gui-tools
To unsubscribe:    http://lists.mysql.com/[email protected]