New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
21.8.0: gevent
uses deprecated distutils
#1857
Comments
Looks like 21.12.0 still is using deprecated [tkloczko@devel-g2v gevent-21.12.0]$ grep -r distutils
_setupares.py:import distutils.sysconfig # to get CFLAGS to pass into c-ares configure script pylint:disable=import-error
_setupares.py:_distutils_cflags = distutils.sysconfig.get_config_var("CFLAGS") or ''
_setupares.py:cflags = _distutils_cflags + ((' ' + os.environ['CFLAGS']) if os.environ.get("CFLAGS") else '')
_setuplibev.py: # NDEBUG is *not* defined. distutils likes to define NDEBUG by default,
_setuputils.py:from distutils import sysconfig as dist_sysconfig
_setuputils.py: # distutils.sysconfig.get_python_inc() returns the main Python installation
_setuputils.py: # distutils.sysconfig.get_python_inc() -> /pythondir/include/python3.8
_setuputils.py:from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError # pylint:disable=no-name-in-module,import-error
_setuputils.py:from distutils.command.clean import clean # pylint:disable=no-name-in-module,import-error
_setuputils.py:from distutils import log # pylint:disable=no-name-in-module
_setuputils.py:from distutils.dir_util import remove_tree # pylint:disable=no-name-in-module,import-error
appveyor.yml: # If we leave this at 2015, we hit a bug in distutils+PyPy:
appveyor.yml: # File "C:\pypy2.7-v7.3.6-win64\lib-python\2.7\distutils\_msvccompiler.py", line 122, in _get_vc_env
appveyor.yml: # File "C:\pypy2.7-v7.3.6-win64\lib-python\2.7\distutils\_msvccompiler.py", line 102, in _find_vcvarsall
appveyor.yml: # File "C:\pypy2.7-v7.3.6-win64\lib-python\2.7\distutils\_msvccompiler.py", line 35, in _find_vc2015
src/gevent/libev/_corecffi_build.py:distutils_ext = _setuplibev.build_extension()
src/gevent/libev/_corecffi_build.py:_setuputils.ConfiguringBuildExt.gevent_add_pre_run_action(distutils_ext.configure)
src/gevent/libev/_corecffi_build.py:macros = list(distutils_ext.define_macros)
src/gevent/libev/_corecffi_build.py: include_dirs=distutils_ext.include_dirs + [
src/gevent/libev/_corecffi_build.py: undef_macros=distutils_ext.undef_macros,
src/gevent/libev/_corecffi_build.py: libraries=distutils_ext.libraries,
src/gevent/libev/corecext.c: "distutils": {
src/gevent/resolver/cares.c: "distutils": {
src/gevent/testing/sysinfo.py:# XXX: In Python 3.10, distutils is deprecated and slated for removal in
src/gevent/testing/sysinfo.py: from distutils.version import LooseVersion
src/gevent/testing/sysinfo.py: from distutils.version import LooseVersion
src/gevent/_greenlet_primitives.c: "distutils": {
src/gevent/_hub_primitives.c: "distutils": {
src/gevent/_hub_local.c: "distutils": {
src/gevent/_waiter.c: "distutils": {
src/gevent/greenlet.c: "distutils": {
src/gevent/_tracer.c: "distutils": {
src/gevent/_abstract_linkable.c: "distutils": {
src/gevent/_semaphore.c: "distutils": {
src/gevent/local.c: "distutils": {
src/gevent/_ident.c: "distutils": {
src/gevent/_imap.c: "distutils": {
src/gevent/event.c: "distutils": {
src/gevent/queue.c: "distutils": {
src/greentest/2.7pypy/test_threading.py: # gevent: a distutils.errors.LinkError is sometimes raised. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
ep517 build is broken because
gevent
is using deprecateddistutils
which is causing that setuptools<>sphinx integration cannot be used.https://www.sphinx-doc.org/en/master/usage/advanced/setuptools.html
https://www.python.org/dev/peps/pep-0632/
The text was updated successfully, but these errors were encountered: