Skip to content

Commit 38091b3

Browse files
nganhkhoawtdcode
andauthored
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 <[email protected]>
1 parent c136b6b commit 38091b3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bindings/python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def join_all(src, files):
232232

233233
setup(
234234
provides=['unicorn'],
235-
packages=['unicorn'],
235+
packages=setuptools.find_packages(include=["unicorn", "unicorn.*"]),
236236
name='unicorn',
237237
version=VERSION,
238238
author='Nguyen Anh Quynh',

bindings/python/unicorn/unicorn_py2.py

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# years since EOL of Python2 so it should be fine.
1818
from . import x86_const, arm_const, arm64_const, unicorn_const as uc
1919

20+
# Compatibility placeholder, nothing special here
21+
ucsubclass = 0
22+
2023
if not hasattr(sys.modules[__name__], "__file__"):
2124
__file__ = inspect.getfile(inspect.currentframe())
2225

0 commit comments

Comments
 (0)