Skip to content

Support for Python 3.11 #10

@Hellseher

Description

@Hellseher

Hi,

During refresh of this project in Guix I faced with an issue to build it with Python 3.11:

Using 'setuptools.build_meta' to build wheels, auto-detected '#f', override '#f'.
Prepending '[]' to sys.path, auto-detected '#f', override '#f'.
/gnu/store/v0anxayz3cw8a8s5ib754d97kx20g9k3-python-setuptools-67.6.1/lib/python3.11/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
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/parabam
copying parabam/__init__.py -> build/lib.linux-x86_64-cpython-311/parabam
creating build/lib.linux-x86_64-cpython-311/parabam/command
copying parabam/command/__init__.py -> build/lib.linux-x86_64-cpython-311/parabam/command
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'parabam.core' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/parabam
gcc -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fPIC -I/gnu/store/h6js234mh24sbgxaz5fq750pq9r8razq-python-3.11.11/include/python3.11 -c parabam/core.c -o build/temp.linux-x86_64-cpython-311/parabam/core.o
parabam/core.c:210:12: fatal error: longintrepr.h: No such file or directory
  210 |   #include "longintrepr.h"
      |            ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/gnu/store/86fc8bi3mciljxz7c79jx8zr4wsx7xw8-gcc-11.4.0/bin/gcc' failed with exit code 1
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-c" "import sys, importlib, json\nbackend_path = json.loads (sys.argv[1]) or []\nbackend_path.extend (sys.path)\nsys.path = backend_path\nconfig_settings = json.loads (sys.argv[4])\nbuilder = importlib.import_module(sys.argv[2])\nbuilder.build_wheel(sys.argv[3], config_settings=config_settings)" "[]" "setuptools.build_meta" "dist" "{}") exit-status: 1 term-signal: #f stop-signal: #f>

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