Functions | Variables
support Namespace Reference

Functions

def _compile (compiler, source_string)
 
def _expect_compile (compiler, source_string, error_message)
 
def diagnose_attribute_error (build_ext, error)
 
def diagnose_build_ext_error (build_ext, error, formatted)
 
def diagnose_compile_error (build_ext, error)
 

Variables

dictionary _ERROR_DIAGNOSES
 
dictionary C_CHECKS
 
string C_PYTHON_DEV
 
string C_PYTHON_DEV_ERROR_MESSAGE
 
string PYTHON_REPRESENTATION = 'python'
 

Function Documentation

◆ _compile()

def support._compile (   compiler,
  source_string 
)
private

Definition at line 52 of file support.py.

◆ _expect_compile()

def support._expect_compile (   compiler,
  source_string,
  error_message 
)
private

Definition at line 65 of file support.py.

◆ diagnose_attribute_error()

def support.diagnose_attribute_error (   build_ext,
  error 
)

Definition at line 94 of file support.py.

◆ diagnose_build_ext_error()

def support.diagnose_build_ext_error (   build_ext,
  error,
  formatted 
)

Definition at line 107 of file support.py.

◆ diagnose_compile_error()

def support.diagnose_compile_error (   build_ext,
  error 
)
Attempt to diagnose an error during compilation.

Definition at line 73 of file support.py.

Variable Documentation

◆ _ERROR_DIAGNOSES

dictionary support._ERROR_DIAGNOSES
private
Initial value:
1 = {
2  errors.CompileError: diagnose_compile_error,
3  AttributeError: diagnose_attribute_error,
4 }

Definition at line 101 of file support.py.

◆ C_CHECKS

dictionary support.C_CHECKS
Initial value:
1 = {
2  C_PYTHON_DEV:
3  C_PYTHON_DEV_ERROR_MESSAGE.replace('<PY_REPR>', PYTHON_REPRESENTATION),
4 }

Definition at line 46 of file support.py.

◆ C_PYTHON_DEV

string support.C_PYTHON_DEV
Initial value:
1 = """
2 #include <Python.h>
3 int main(int argc, char **argv) { return 0; }
4 """

Definition at line 24 of file support.py.

◆ C_PYTHON_DEV_ERROR_MESSAGE

string support.C_PYTHON_DEV_ERROR_MESSAGE
Initial value:
1 = """
2 Could not find <Python.h>. This could mean the following:
3  * You're on Ubuntu and haven't run `apt-get install <PY_REPR>-dev`.
4  * You're on RHEL/Fedora and haven't run `yum install <PY_REPR>-devel` or
5  `dnf install <PY_REPR>-devel` (make sure you also have redhat-rpm-config
6  installed)
7  * You're on Mac OS X and the usual Python framework was somehow corrupted
8  (check your environment variables or try re-installing?)
9  * You're on Windows and your Python installation was somehow corrupted
10  (check your environment variables or try re-installing?)
11 """

Definition at line 28 of file support.py.

◆ PYTHON_REPRESENTATION

string support.PYTHON_REPRESENTATION = 'python'

Definition at line 40 of file support.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:44