Às 14:07 de 24/12/18, Stefan Behnel escreveu:
> Paulo da Silva schrieb am 22.12.18 um 19:26:
...
>
> Ubuntu 18.04 ships Cython 0.26, which has a funny bug that you hit above.
> It switches the language-level too late, so that the first token (or word)
> in the file is parsed with Py2 syntax. In y
Paulo da Silva schrieb am 22.12.18 um 19:26:
> Sorry if this is OT.
>
> I decided to give cython a try and cannot run a very simple program!
>
> 1. I am using kubuntu 18.04 and installe cython3 (not cython).
>
> 2. My program tp.pyx:
>
> # cython: language_level=3
> print("Test",2)
>
> 3. setu
Às 19:48 de 22/12/18, MRAB escreveu:
> On 2018-12-22 18:26, Paulo da Silva wrote:
...
> Well, I've just tried this on Raspbian with the same files (for Python 3):
>
> python3 -m pip install cython
> python3 setup.py build_ext --inplace
> python3 -c 'import tp'
>
> and it printed:
>
> Test 2
O
On 2018-12-22 18:26, Paulo da Silva wrote:
Hi!
Sorry if this is OT.
I decided to give cython a try and cannot run a very simple program!
1. I am using kubuntu 18.04 and installe cython3 (not cython).
2. My program tp.pyx:
# cython: language_level=3
print("Test",2)
3. setup.py
from distutils.
Hi!
Sorry if this is OT.
I decided to give cython a try and cannot run a very simple program!
1. I am using kubuntu 18.04 and installe cython3 (not cython).
2. My program tp.pyx:
# cython: language_level=3
print("Test",2)
3. setup.py
from distutils.core import setup
from Cython.Build import cy