Add unicorn_py3 folder to setup.py (#1942)

* Add unicorn_py3 folder to setup.py

* Run sample in CI

* Fix pip install & py2 breakage

---------

Co-authored-by: mio <mio@lazym.io>
This commit is contained in:
Nguyễn Anh Khoa 2024-04-27 23:11:05 +07:00 committed by GitHub
parent c136b6b2bf
commit 38091b3046
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,7 @@ Further information is available at http://www.unicorn-engine.org
setup(
provides=['unicorn'],
packages=['unicorn'],
packages=setuptools.find_packages(include=["unicorn", "unicorn.*"]),
name='unicorn',
version=VERSION,
author='Nguyen Anh Quynh',

View File

@ -17,6 +17,9 @@ from collections import namedtuple
# years since EOL of Python2 so it should be fine.
from . import x86_const, arm_const, arm64_const, unicorn_const as uc
# Compatibility placeholder, nothing special here
ucsubclass = 0
if not hasattr(sys.modules[__name__], "__file__"):
__file__ = inspect.getfile(inspect.currentframe())