Refactor vendor packages Dockerfile to build numpy natively and correct package dependencies
This commit is contained in:
+2
-8
@@ -142,7 +142,6 @@ RUN ./configure \
|
|||||||
--host=aarch64-none-linux-gnu \
|
--host=aarch64-none-linux-gnu \
|
||||||
--build=x86_64-linux-gnu \
|
--build=x86_64-linux-gnu \
|
||||||
--prefix=${TARGET_SYSROOT} \
|
--prefix=${TARGET_SYSROOT} \
|
||||||
--enable-shared \
|
|
||||||
--disable-ipv6 \
|
--disable-ipv6 \
|
||||||
--enable-optimizations \
|
--enable-optimizations \
|
||||||
--with-openssl=${TARGET_SYSROOT} \
|
--with-openssl=${TARGET_SYSROOT} \
|
||||||
@@ -169,7 +168,7 @@ RUN pip download --no-deps -d /wheels \
|
|||||||
argcomplete \
|
argcomplete \
|
||||||
osrf-pycommon \
|
osrf-pycommon \
|
||||||
typing-extensions \
|
typing-extensions \
|
||||||
psutil
|
rosdistro
|
||||||
|
|
||||||
# python packages with c extension
|
# python packages with c extension
|
||||||
RUN pip download \
|
RUN pip download \
|
||||||
@@ -180,16 +179,11 @@ RUN pip download \
|
|||||||
--abi cp310 \
|
--abi cp310 \
|
||||||
--platform manylinux2014_aarch64 \
|
--platform manylinux2014_aarch64 \
|
||||||
-d /wheels \
|
-d /wheels \
|
||||||
psutil
|
psutil numpy==1.21.5
|
||||||
|
|
||||||
RUN chmod +x /tmp/extract_wheels.sh && \
|
RUN chmod +x /tmp/extract_wheels.sh && \
|
||||||
/tmp/extract_wheels.sh "${TARGET_SYSROOT}/lib/python3.10/site-packages" /wheels
|
/tmp/extract_wheels.sh "${TARGET_SYSROOT}/lib/python3.10/site-packages" /wheels
|
||||||
|
|
||||||
RUN python3 -m pip install crossenv \
|
|
||||||
&& python3 -m crossenv ${TARGET_SYSROOT}/bin/python3 venv \
|
|
||||||
&& . venv/bin/activate \
|
|
||||||
&& pip -v install numpy==1.21.5 --prefix=${TARGET_SYSROOT}
|
|
||||||
|
|
||||||
FROM ${CC_PLATFORM_IMAGE} AS final
|
FROM ${CC_PLATFORM_IMAGE} AS final
|
||||||
|
|
||||||
COPY --from=system_packages ${TARGET_SYSROOT} ${TARGET_SYSROOT}
|
COPY --from=system_packages ${TARGET_SYSROOT} ${TARGET_SYSROOT}
|
||||||
|
|||||||
Reference in New Issue
Block a user