Page 2 of 2

Re: POLYMER 4.16.1 make error

Posted: Mon Dec 11, 2023 11:47 am
by danschef
sakvaka_env wrote:
Thu Aug 03, 2023 9:53 am
lanzhiqishi wrote:
Fri Jul 28, 2023 12:06 pm
Dear 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
That's one option, but another is to modify setup.py like this to force Cython to use Python 2:

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'],
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.

Re: POLYMER 4.16.1 make error

Posted: Fri Dec 22, 2023 10:43 am
by fsteinmetz
Thanks for this. A major update of Polymer is underway, we will pay attention to this topic for next release.
Kind regards,
François

Re: POLYMER 4.16.1 make error

Posted: Thu Jan 18, 2024 2:33 pm
by fsteinmetz
cython >=2.0 compatibility is now available on latest version of Polymer (https://github.com/hygeos/polymer)