File tree 5 files changed +11
-12
lines changed 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ RUN [ -e /tmp/build_dep.txt ] && \
29
29
apt-get -qq update && \
30
30
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $(cat /tmp/build_dep.txt | grep -o '^[^#]*' ) && \
31
31
apt-get clean && \
32
- python3 -m pip install --upgrade --no-cache-dir pip && \
33
- python3 -m pip install --upgrade --no-cache-dir "cffi>1.14.3" && \
34
- python3 -m pip install --upgrade --no-cache-dir "capstone" && \
32
+ python3 -m pip install "cffi>1.14.3" && \
35
33
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
36
34
37
35
# Then install capstone from source
@@ -91,7 +89,6 @@ RUN make -C /panda/build install && \
91
89
# Install pypanda
92
90
RUN cd /panda/panda/python/core && \
93
91
PRETEND_VERSION=$(cat /tmp/savedversion) python3 setup.py install
94
- RUN python3 -m pip install --ignore-install pycparser && python3 -m pip install --force-reinstall --no-binary :all: cffi
95
92
# Build a whl too
96
93
RUN cd /panda/panda/python/core && \
97
94
PRETEND_VERSION=$(cat /tmp/savedversion) python3 setup.py bdist_wheel
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ unzip
18
18
# pyperipheral (only needed for armel)
19
19
libpython3-dev
20
20
21
- # pypanda dependencies
21
+ # panda python dependencies
22
22
genisoimage
23
23
libffi-dev
24
24
python3-protobuf
25
25
python3-colorama
26
+ python3-capstone
26
27
27
28
# apt-rdepends qemu-system-common
28
29
acl
Original file line number Diff line number Diff line change 17
17
# pyperipheral (only needed for armel)
18
18
libpython3-dev
19
19
20
- # pypanda dependencies
20
+ # panda python dependencies
21
21
genisoimage
22
22
libffi-dev
23
23
python3-protobuf
24
24
python3-colorama
25
+ python3-capstone
25
26
26
27
# Not sure what this one is needed for
27
28
liblzo2-2
Original file line number Diff line number Diff line change 17
17
# pyperipheral (only needed for armel)
18
18
libpython3-dev
19
19
20
- # pypanda dependencies
20
+ # panda python dependencies
21
21
genisoimage
22
22
libffi-dev
23
23
python3-protobuf
24
24
python3-colorama
25
+ python3-capstone
25
26
26
27
# Not sure what this one is needed for
27
28
liblzo2-2
Original file line number Diff line number Diff line change @@ -126,11 +126,6 @@ if [[ !$(dpkg -l | grep -q libosi) ]]; then
126
126
popd
127
127
fi
128
128
129
- # PyPANDA needs CFFI from pip (the version in apt is too old)
130
- # Install system-wide since PyPANDA install will also be system-wide
131
- $SUDO python3 -m pip install pip
132
- $SUDO python3 -m pip install " cffi>1.14.3"
133
-
134
129
progress " Trying to update DTC submodule"
135
130
git submodule update --init dtc || true
136
131
@@ -139,6 +134,10 @@ if [ -d "build" ]; then
139
134
rm -rf " build"
140
135
fi
141
136
137
+ # PyPANDA needs CFFI from pip (the version in apt is too old)
138
+ # Install system-wide since PyPANDA install will also be system-wide
139
+ $SUDO python3 -m pip install " cffi>1.14.3"
140
+
142
141
progress " Building PANDA..."
143
142
mkdir build
144
143
pushd build
You can’t perform that action at this time.
0 commit comments