capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.18k stars 1.52k forks source link

Use python3 as default interpreter for python scripts #2390

Closed Rot127 closed 2 weeks ago

Rot127 commented 2 weeks ago

Your checklist for this pull request

Detailed description

Should fix the broken CIFuzz job:

[100%] Built target cstool
+ cd /src/capstonenext/bindings/python
+ sed -i -e s/#print/print/ capstone/__init__.py
+ export CFLAGS=
+ CFLAGS=
+ export AFL_NOOPT=1
+ AFL_NOOPT=1
+ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 219, in <module>
    long_description=open('README.txt', encoding="utf8").read(),
TypeError: 'encoding' is an invalid keyword argument for this function
2024-06-14 16:16:44,998 - root - ERROR - Building fuzzers failed.
2024-06-14 16:16:44,998 - root - ERROR - Error building fuzzers for (commit: 757faef5c44c8ded3c1fca5d6518f541613e9978, pr_ref: refs/pull/2387/merge).

After https://github.com/google/oss-fuzz/pull/12028 is merged. But this requires this one to be merged first.

Test plan

...

Closing issues

...