Re: POLYMER 4.16.1 make error
Posted: Mon Dec 11, 2023 11:47 am
It would be nice to have a POLYMER v4.16.2 release that adds the 'language_level' to the setup.py or even better updates the Python-2 files of POLYMER to Python-3 (Python 2 reached end of life in 2019). Using cython<3 is just a workaround which will increasingly block other requirements from updating in future.sakvaka_env wrote: ↑Thu Aug 03, 2023 9:53 amThat's one option, but another is to modify setup.py like this to force Cython to use Python 2:lanzhiqishi wrote: ↑Fri Jul 28, 2023 12:06 pmDear sakvaka_env,
Thank you for your so details explain.
Is that mean i should use the old version with Cpython, maybe Cpython 2.0 will be work.
Best
Binbin
Code: Select all
--- setup.py 2023-04-07 11:58:22.000000000 +0000 +++ setup.py.old 2023-07-28 08:29:53.349969369 +0000 @@ -14,6 +14,7 @@ compiler_directives = { 'profile': True, 'embedsignature': True, + 'language_level': "2" } else: compiler_directives = { @@ -21,6 +22,7 @@ 'initializedcheck': False, 'cdivision': True, 'embedsignature': True, + 'language_level': "2" } EXTENSIONS = cythonize([SRC_DIR + '/*.pyx'],