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:
parent
c136b6b2bf
commit
38091b3046
|
@ -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',
|
||||
|
|
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue