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'],
POLYMER 4.16.1 make error
-
- Posts: 1
- Joined: Tue Mar 16, 2021 9:50 pm
- company / institution: German Research Centre for Geosciences GFZ Potsdam
- Location: Potsdam
Re: POLYMER 4.16.1 make error
- fsteinmetz
- Site Admin
- Posts: 306
- Joined: Fri Sep 07, 2018 1:34 pm
- company / institution: Hygeos
- Location: Lille, France
- Contact:
Re: POLYMER 4.16.1 make error
Thanks for this. A major update of Polymer is underway, we will pay attention to this topic for next release.
Kind regards,
François
Kind regards,
François
- fsteinmetz
- Site Admin
- Posts: 306
- Joined: Fri Sep 07, 2018 1:34 pm
- company / institution: Hygeos
- Location: Lille, France
- Contact:
Re: POLYMER 4.16.1 make error
cython >=2.0 compatibility is now available on latest version of Polymer (https://github.com/hygeos/polymer)