mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
9671514a8bd7cf69e2970e054eafc1f26185cf76
So we can support any 3.x version like on the other platforms. The Python 3.x ABI is stable so there is no need to build an extension for each minor version. Due to the limited dynamic linking support on Windows, however, there's no way around hard-coding the Python DLL name in the extension it is compiled for. As we don't expect users to install via easy_install on Python 3.x, but assume they're using pip, we just have to tweak our setup.py so it fixes up the extension after grabbing it from the .egg.
frida-python
Python bindings for Frida.
Some tips during development
To build and test your own egg, do something along the following lines:
set FRIDA_VERSION=12.0.0.10.gd7c36fc # from C:\src\frida\build\tmp-windows\frida-version.h
set FRIDA_EXTENSION=C:\src\frida\build\frida-windows\Win32-Debug\lib\python2.7\site-packages\_frida.pyd
cd C:\src\frida\frida-python\
python setup.py bdist_egg
pip uninstall frida
easy_install dist\frida-12.0.0.10.gd7c36fc-py2.7-win32.egg
Description
Languages
C
65.2%
Python
33.5%
Meson
0.7%
Batchfile
0.4%
Makefile
0.2%