diff --git a/bindings/python/setup.py b/bindings/python/setup.py index c3db4438..496b62e9 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -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', diff --git a/bindings/python/unicorn/unicorn_py2.py b/bindings/python/unicorn/unicorn_py2.py index 1358bb27..cc5450f0 100644 --- a/bindings/python/unicorn/unicorn_py2.py +++ b/bindings/python/unicorn/unicorn_py2.py @@ -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())