typo,  the error mentioned above is gone.

On Saturday, July 25, 2015 at 10:28:12 PM UTC+8, Ouyang wrote:
Hi Robert,

I re-git a copy of sfepy and no error mentioned above is gone. I am using python2.7.10 (python(x,y)) on windows 8.

But installing sfepy with "python setup.py install"  failed (see the attached file, err_info.txt).  Under the same environment, a "old" copy of sfepy can be installed and pass "run_tests.py" (with 7 failures).

Any suggestions?

Ouyang








On Saturday, July 25, 2015 at 3:45:46 PM UTC+8, Robert Cimrman wrote:
Hi Ouyang,

On 07/25/2015 06:26 AM, Ouyang wrote:
> Hi Robert
>
> I just git a copy of sfepy from the site today and get error from
> build_helpers.py by "python setup.py install"
>
> SyntaxError is at line 310
>
>   pkg_info = pkg_name + (' (optional)' if optional else '')
>
> at     if optional else ''

Try using:

     pkg_info = pkg_name
     if optional:
         pkg_info += ' (optional)'

- does that work?

What is your python version?

r.