OSX Python3.8 Cython version

Hey I’m running into a deprecation Werror problem that I think is solved upstream
See: https://github.com/cython/cython/pull/3201/files

I’ve tried upgrading cython via pip but I’m not sure this is the same version used during compile.
Which is: /Users/runner/hostedtoolcache/Python/3.8.3/x64/include

Is it feasible to upgrade the container version of cython?
Or confirm it’s the pip version?

Thanks

Deprecation Werror log: https://github.com/X-DataInitiative/tick/runs/724593449#step:6:145

Have you tried build your project in your local machine with Python 3.8.3 ? What’s the result?
To be honest , I am not familiar with Python and Cython, how do you make the project to be build with python using Cython?
Based on my research, the setup.py file needs to add

from Cython.Build import cythonize

I’m not using Cython directly here.

You can see that the build passes for 3.8 with other operating systems.

After some research, in my opinion there are something wrong with python 3.8.3 on MacOs. Could you please try to add -Wno-error=deprecated-declarations to your setup.py like this PR does?

Please kindly let me know your result.

I am aware that it can be silenced.
If you refer to my first post you should see that I’m trying to see if another approach is possible as I’d rather not silence any “Werror”

For Hosted MacOS we download the Python source from https://www.python.org/downloads/source/ . A few versions (3.8.3 included) are pre-installed on each hosted image and the setup-python action makes sure that it is being used.
If you think the issue is with the 3.8.3 version of Python on macOS, I would encourage you open an issue either in setup-python or virtual-environments .
pip is designed to upgrade python packages and not to upgrade python itself. In my opinion, as you didn’t use Cython directly when build python project, upgrade the container version of cython could not fix this ‘tp_print’ is deprecated error.

ok @yanjingzhu I’ll try ask in these places

thanks