Skip to content

Commit

Permalink
Add unicorn_py3 folder to setup.py (#1942)
Browse files Browse the repository at this point in the history
* Add unicorn_py3 folder to setup.py

* Run sample in CI

* Fix pip install & py2 breakage

---------

Co-authored-by: mio <[email protected]>
  • Loading branch information
nganhkhoa and wtdcode authored Apr 27, 2024
1 parent c136b6b commit 38091b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def join_all(src, files):

setup(
provides=['unicorn'],
packages=['unicorn'],
packages=setuptools.find_packages(include=["unicorn", "unicorn.*"]),
name='unicorn',
version=VERSION,
author='Nguyen Anh Quynh',
Expand Down
3 changes: 3 additions & 0 deletions bindings/python/unicorn/unicorn_py2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# 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())

Expand Down

0 comments on commit 38091b3

Please sign in to comment.