Skip to content

cannot install [lint] #40

@e-kwsm

Description

@e-kwsm

mypy 0.790 requires typed-ast 1.4.3, which does not compile:

$ git describe --always
4fc4233b8fba
$ python3.11 -m venv venv
$ . ./venv/bin/activate
$ pip install '.[lint]'

Collecting mypy<0.800,>=0.770 (from pysen==0.10.5)
  Using cached mypy-0.790-py3-none-any.whl (2.4 MB)

Collecting typed-ast<1.5.0,>=1.4.0 (from mypy<0.800,>=0.770->pysen==0.10.5)
  Using cached typed_ast-1.4.3.tar.gz (210 kB)

Building wheels for collected packages: pysen, typed-ast
  Building editable for pysen (pyproject.toml) ... done
  Created wheel for pysen: filename=pysen-0.10.5-0.editable-py3-none-any.whl size=8075 sha256=3579c70e4cb4c4b289f11f30071e7ce2b52d19793e48ad24375b95eb91e54e56
  Stored in directory: /tmp/pip-ephem-wheel-cache-g751zhn6/wheels/4b/81/b2/635dc68d1646da2a3a81ad5d50d3f2e66c55ce807e2c779a7b
  Building wheel for typed-ast (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for typed-ast (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/typed_ast
      copying typed_ast/__init__.py -> build/lib.linux-x86_64-cpython-311/typed_ast
      copying typed_ast/ast27.py -> build/lib.linux-x86_64-cpython-311/typed_ast
      copying typed_ast/ast3.py -> build/lib.linux-x86_64-cpython-311/typed_ast
      copying typed_ast/conversions.py -> build/lib.linux-x86_64-cpython-311/typed_ast
      creating build/lib.linux-x86_64-cpython-311/typed_ast/tests
      copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-cpython-311/typed_ast/tests
      running build_ext
      building '_ast27' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/ast27
      creating build/temp.linux-x86_64-cpython-311/ast27/Custom
      creating build/temp.linux-x86_64-cpython-311/ast27/Parser
      creating build/temp.linux-x86_64-cpython-311/ast27/Python
      gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -Iast27/Include -I$PWD/venv/include -I/usr/include/python3.11 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-cpython-311/ast27/Custom/typed_ast.o
      In file included from ast27/Custom/typed_ast.c:3:
      ast27/Custom/../Include/compile.h:5:10: fatal error: code.h: No such file or directory
          5 | #include "code.h"
            |          ^~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for typed-ast
Successfully built pysen
Failed to build typed-ast
ERROR: Could not build wheels for typed-ast, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions