mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
93 lines
2.5 KiB
Python
93 lines
2.5 KiB
Python
#!/usr/bin/env python3
|
|
#
|
|
# Python setup for Qiling framework
|
|
|
|
import sys, os
|
|
from setuptools import setup, find_packages
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
gb = {}
|
|
with open(os.path.join(here, "qiling", "__version__.py"), "r+") as f:
|
|
exec(f.read(), gb)
|
|
|
|
VERSION = gb['__version__']
|
|
|
|
requirements = [
|
|
"capstone>=4.0.1",
|
|
"unicorn>=2.0.0-rc4",
|
|
"pefile>=2021.9.3",
|
|
"python-registry>=1.3.1",
|
|
"keystone-engine>=0.9.2",
|
|
"pyelftools>=0.26",
|
|
"gevent>=20.9.0",
|
|
"multiprocess>=0.70.12.2"
|
|
]
|
|
|
|
evm_extra = {
|
|
"evm": [
|
|
"blake2b-py>=0.1.2",
|
|
"cached-property>=1.5.2;python_version<'3.8'",
|
|
"typing-extensions>=3.7.4.3;python_version<'3.8'",
|
|
"eth-keys>=0.2.1",
|
|
"eth-typing>=2.2.0",
|
|
"eth-utils>=1.9.4",
|
|
"eth_abi>=2.1.1",
|
|
"lru-dict>=1.1.6",
|
|
"py-ecc>=1.4.7",
|
|
"rlp>=2",
|
|
"trie==2.0.0-alpha.5",
|
|
"eth-hash[pycryptodome]",
|
|
"numpy",
|
|
"rich",
|
|
"cmd2"
|
|
]
|
|
}
|
|
|
|
with open("README.md", "r", encoding="utf-8") as ld:
|
|
long_description = ld.read()
|
|
|
|
if "win32" in sys.platform:
|
|
requirements += ["windows-curses>=2.1.0"]
|
|
|
|
setup(
|
|
name='qiling',
|
|
version=VERSION,
|
|
|
|
description='Qiling is an advanced binary emulation framework that cross-platform-architecture',
|
|
url='http://qiling.io',
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
maintainer='KaiJern Lau (xwings)',
|
|
maintainer_email='[email protected]',
|
|
|
|
license='GPLv2',
|
|
|
|
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
classifiers=[
|
|
# How mature is this project? Common values are
|
|
# 3 - Alpha
|
|
# 5 - Production/Stable
|
|
'Development Status :: 5 - Production/Stable',
|
|
#'Development Status :: 3 - Alpha',
|
|
|
|
# Indicate who your project is intended for
|
|
'Intended Audience :: Developers',
|
|
'Topic :: Software Development :: Build Tools',
|
|
|
|
# Pick your license as you wish (should match "license" above)
|
|
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
|
|
|
|
# Specify the Python versions you support here. In particular, ensure
|
|
# that you indicate whether you support Python 2, Python 3 or both.
|
|
'Programming Language :: Python :: 3',
|
|
],
|
|
|
|
keywords='qiling binary emulator framework malware analysis UEFI IoT',
|
|
|
|
packages=find_packages(),
|
|
scripts=['qltool'],
|
|
include_package_data=True,
|
|
install_requires=requirements,
|
|
extras_require=evm_extra,
|
|
)
|