Skip to content

pip install fails when using python 3.11 #175

Description

@ansiblejunky

Trying to pip install fake-switches with Python 3.11.x and its failing with the dependency of Twisted with error:

      clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Users/xxx/.pyenv/versions/dev/include -I/Users/xxx/.pyenv/versions/3.11.4/include/python3.11 -c src/twisted/test/raiser.c -o build/temp.macosx-13.4-arm64-cpython-311/src/twisted/test/raiser.o
      src/twisted/test/raiser.c:49:12: fatal error: 'longintrepr.h' file not found
        #include "longintrepr.h"
                 ^~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
pip --version
pip 24.0 
python --version
Python 3.11.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions