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:
@@ -232,7 +232,7 @@ Further information is available at http://www.unicorn-engine.org
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
provides=['unicorn'],
|
provides=['unicorn'],
|
||||||
packages=['unicorn'],
|
packages=setuptools.find_packages(include=["unicorn", "unicorn.*"]),
|
||||||
name='unicorn',
|
name='unicorn',
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
author='Nguyen Anh Quynh',
|
author='Nguyen Anh Quynh',
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ from collections import namedtuple
|
|||||||
# years since EOL of Python2 so it should be fine.
|
# years since EOL of Python2 so it should be fine.
|
||||||
from . import x86_const, arm_const, arm64_const, unicorn_const as uc
|
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__"):
|
if not hasattr(sys.modules[__name__], "__file__"):
|
||||||
__file__ = inspect.getfile(inspect.currentframe())
|
__file__ = inspect.getfile(inspect.currentframe())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user