stan-dev / httpstan

HTTP interface to Stan, a package for Bayesian inference.
ISC License
39 stars 15 forks source link

distutils is deprecated as of Python 3.10 #573

Closed riddell-stan closed 1 year ago

riddell-stan commented 2 years ago

distutils is deprecated, per PEP 632. httpstan should stop using it.

I think this should be easy. I believe setuptools provides the functions/classes from distutils we currently use.

Looks like distutils will be removed in Python 3.12.

(note: setuptools version 48 and higher contains a copy of distutils.)

riddell-stan commented 2 years ago

Ubuntu 20.04 does not ship with setuptools version 48 or higher (it ships with setuptools 45). Addressing this could safely wait until the release for Python 3.12.

riddell-stan commented 1 year ago

FYI: release date for 3.12 is: 3.12.0 final: Monday, 2023-10-02

OriolAbril commented 1 year ago

An issue related to this seems to be appearing on ArviZ CI even though it uses Python 3.9: https://dev.azure.com/ArviZ/ArviZ/_build/results?buildId=5902&view=logs&j=7f538728-4589-5563-0e87-d0823eb40420&t=ca181c57-2f6c-5cc2-019c-e7792481591d&l=81. Any ideas why or potential workarounds?

riddell-stan commented 1 year ago

Not sure. I doubt it's related. "msvccompiler" suggests something related to Windows. Windows is not supported by httpstan.

On Tue, 16 Aug 2022, at 11:13, Oriol Abril-Pla wrote:

An issue related to this seems to be appearing on ArviZ CI even though it uses Python 3.9: https://dev.azure.com/ArviZ/ArviZ/_build/results?buildId=5902&view=logs&j=7f538728-4589-5563-0e87-d0823eb40420&t=ca181c57-2f6c-5cc2-019c-e7792481591d&l=81. Any ideas why or potential workarounds?

— Reply to this email directly, view it on GitHubhttps://github.com/stan-dev/httpstan/issues/573#issuecomment-1216492835, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJQUBVWZ5O437HVJOCQUWOLVZNZU7ANCNFSM5CCQXTBA. You are receiving this because you authored the thread.Message ID: @.***>

riddell-stan commented 1 year ago

Upon reflection, this can be fixed today. There are no problems for Ubuntu 20.04. Remember to add setuptools>=48 to the list of runtime requirements.