Skip to content

bindings/python: xprint.py missing from PyPI distribution #2870

@Jvlegod

Description

@Jvlegod

I'm trying to compile an RPM package and run test scripts from the "tests" directory during the "%check" phase. Some test cases fail because the "xprint" module is missing.

[   20s] + /usr/bin/python3 test_all.py
[   20s] Traceback (most recent call last):
[   20s]   File "/home/abuild/rpmbuild/BUILD/python-capstone-5.0.3-build/python-capstone-5.0.3/tests/test_all.py", line 3, in <module>
[   20s]     import test_basic, test_arm, test_arm64, test_detail, test_lite, test_m68k, test_mips, \
[   20s]         test_ppc, test_x86, test_skipdata, test_sparc, test_systemz, test_tms320c64x, test_customized_mnem, \
[   20s]         test_m680x, test_mos65xx, test_xcore, test_riscv
[   20s]   File "/home/abuild/rpmbuild/BUILD/python-capstone-5.0.3-build/python-capstone-5.0.3/tests/test_basic.py", line 9, in <module>
[   20s]     from xprint import to_hex
[   20s] ModuleNotFoundError: No module named 'xprint'
[   20s] error: Bad exit status from /var/tmp/rpm-tmp.9qiIix (%check)
[   20s] 
[   20s] RPM build errors:
[   20s]     Bad exit status from /var/tmp/rpm-tmp.9qiIix (%check)
[   20s] 
[   20s] obsworker-9950x-01-16c128g failed "build python-capstone.spec" at Tue Feb 24 05:50:03 UTC 2026.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions