Compile pefile from source

This commit is contained in:
chfl4gs
2022-04-23 15:01:16 +08:00
parent f0297a1203
commit a78db289e3
2 changed files with 5 additions and 12 deletions
+1 -1
View File
@@ -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
+4 -11
View File
@@ -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,