Hi,
I would like to setup the PLY (lex/tacc) optimization in "build time" . So, Could be possible to add this option in the setup?.
Meanwhile, Could be changed the default mode in the tauruscustomsettings ? Move from Active to disabled.
Thanks,
C.Falcon
I had a look, and this one is tricky...
If you avoid generating the lex/yacc tab files during build time, you end up with an installation that lacks those files in the installation dir. The problem with this is that if the user running a GUI that uses jdraw (i.e. containing a synoptic) does not have write permissions to the installation dir (which is a quite standard situation), she will get the following WARNING:
This happens even if the PLY_OPTIMIZE is set to 0 in the tauruscustomsettings (and if PLY_OPTIMIZE is set to 1, an additional complain occurs for jdraw_lextab)
Proposal: we can change the logic so that the lex/yacc tab files are created only at run time, and only in the home dir (e.g. as
~/.taurus/jdraw_lextab.pyand~/.taurus/jdraw_yacctab.py)Last edit: Carlos Pascual 2016-02-10
I'm in favour of this last solution, having yacctab/lextab generated on
runtime at user's home. Many of the portability problems we had with
these files would have been avoided if they were user-specific.
Thanks,
Sergi Rubio
On 02/10/2016 10:12 AM, Carlos Pascual wrote:
Related
OLD Tickets:
#262Fixed (by not using optimize at installation time) as suggested in the comments.
Applied to release-Jan16 branch