Comparing frida:main...james-coder:main · frida/frida-python

Commits on Mar 6, 2026

  1. build(python): resolve pyconfig.h include path breakage

    Meson\'s python.dependency() defaulted to pkg-config in this environment.
    With Frida\'s bundled pkg-config plus PKG_CONFIG_LIBDIR,
    python-3.10.pc cflags were rewritten to /usr/lib/include/... instead of
    /usr/include/..., causing extension.c to fail with pyconfig.h not found.
    
    Switch python dependency discovery to method='system' so include and link
    flags come from Python\'s system metadata instead of pkg-config.
    This avoids the pkg-config relocation quirk while preserving normal
    frida-python build behavior.
    
    Validation:
    - ./configure (default, frida_python enabled) succeeds
    - make succeeds, including:
      [348/349] Compiling ... frida/_frida/extension.c.o
      [349/349] Linking ... frida/_frida/_frida.abi3.so
    Configuration menu

    Browse the repository at this point in the history

  2. tests/python: fix frida package/extension test layout

    Address test harness path/layout issues in Meson builds.
    
    Changes:
    - frida-python tests now run with PYTHONPATH pointing at Meson build outputs.
    - Add frida._frida package shim (__init__.py) that locates and re-exports the
      compiled extension module from build paths.
    - Include __init__.py in frida._frida install sources.
    
    This resolves the prior path/layout failures where tests loaded a package stub
    without native symbols.
    
    Validation:
    - python3 -m py_compile frida/_frida/__init__.py
    - ninja -C /home/james/git/frida/build test (original import-path failures resolved;
      remaining failures are unrelated runtime/dependency issues)
    Configuration menu

    Browse the repository at this point in the history