diff --git a/Dockerfile b/Dockerfile index 2a1360b4..99a0a9bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ WORKDIR /qiling RUN apt-get update \ && apt-get install -y --no-install-recommends unzip apt-utils \ && rm -rf /var/lib/apt/lists/* \ - && pip3 install wheels/*.whl \ + && pip3 install --no-deps wheels/*.whl \ && rm -rf wheels ENV HOME /qiling diff --git a/setup.py b/setup.py index 18519bd0..d19877a5 100644 --- a/setup.py +++ b/setup.py @@ -15,12 +15,13 @@ VERSION = gb['__version__'] requirements = [ "capstone>=4.0.1", "unicorn>=2.0.0-rc7", - "pefile>=2021.9.3", + "pefile @ https://github.com/erocarrera/pefile/archive/refs/heads/master.zip", "python-registry>=1.3.1", "keystone-engine>=0.9.2", "pyelftools>=0.28", "gevent>=20.9.0", "multiprocess>=0.70.12.2", + "windows-curses>=2.1.0;platform_system=='Windows'", "pyyaml>=6.0" ] @@ -43,22 +44,14 @@ extras = { "cmd2" ], "fuzz" : [ - + "unicornafl>=2.0.0;platform_system=='Windows'", + "fuzzercorn>=0.0.1;platform_system=='Linux'" ] } 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"] - -if "win32" not in sys.platform: - extras["fuzz"] += ["unicornafl>=2.0.0"] - -if "linux" in sys.platform: - extras["fuzz"] += ["fuzzercorn>=0.0.1"] - setup( name='qiling', version=VERSION,