Skip to content

Commit

Permalink
Explicitly set roborio platform tag for crossenv (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald authored Nov 24, 2024
1 parent dd960a0 commit f6a1dfd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
5 changes: 3 additions & 2 deletions cross-ubuntu-py/Dockerfile.py310
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ COPY --from=pycompile /build/crosspy /build/crosspy

ARG ARCH=invalid-arch
ARG TARGET_HOST=invalid-target-host
ARG EXTRA_CROSSENV_ARGS=

RUN set -xe; \
ldconfig; \
python3.10 -m pip install crossenv==1.4.0; \
python3.10 -m crossenv /build/crosspy/bin/python3.10 /build/venv --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc; \
python3.10 -m pip install crossenv==1.5.0; \
python3.10 -m crossenv /build/crosspy/bin/python3.10 /build/venv --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc ${EXTRA_CROSSENV_ARGS}; \
/build/venv/bin/cross-pip install wheel;

COPY pip-${ARCH}.conf /build/venv/cross/pip.conf
Expand Down
5 changes: 3 additions & 2 deletions cross-ubuntu-py/Dockerfile.py311
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ COPY --from=pycompile /build/crosspy /build/crosspy

ARG ARCH=invalid-arch
ARG TARGET_HOST=invalid-target-host
ARG EXTRA_CROSSENV_ARGS=

RUN set -xe; \
ldconfig; \
python3.11 -m pip install crossenv==1.4.0; \
python3.11 -m crossenv /build/crosspy/bin/python3.11 /build/venv --sysroot=$(${TARGET_HOST}-print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc; \
python3.11 -m pip install crossenv==1.5.0; \
python3.11 -m crossenv /build/crosspy/bin/python3.11 /build/venv --sysroot=$(${TARGET_HOST}-print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc ${EXTRA_CROSSENV_ARGS}; \
/build/venv/bin/cross-pip install wheel;

COPY pip-${ARCH}.conf /build/venv/cross/pip.conf
Expand Down
5 changes: 3 additions & 2 deletions cross-ubuntu-py/Dockerfile.py312
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ COPY --from=pycompile /build/crosspy /build/crosspy
ARG ARCH=invalid-arch
ARG TARGET_HOST=invalid-target-host
ARG MACHINE_ARG=
ARG EXTRA_CROSSENV_ARGS=

RUN set -xe; \
ldconfig; \
python3.12 -m pip install 'crossenv~=1.4.0'; \
python3.12 -m crossenv /build/crosspy/bin/python3.12 /build/venv ${MACHINE_ARG} --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc; \
python3.12 -m pip install 'crossenv~=1.5.0'; \
python3.12 -m crossenv /build/crosspy/bin/python3.12 /build/venv ${MACHINE_ARG} --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc ${EXTRA_CROSSENV_ARGS}; \
/build/venv/bin/cross-pip install wheel;

COPY pip-${ARCH}.conf /build/venv/cross/pip.conf
Expand Down
3 changes: 2 additions & 1 deletion cross-ubuntu-py/Dockerfile.py313
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ COPY --from=pycompile /build/crosspy /build/crosspy
ARG ARCH=invalid-arch
ARG TARGET_HOST=invalid-target-host
ARG MACHINE_ARG=
ARG EXTRA_CROSSENV_ARGS=

RUN set -xe; \
ldconfig; \
python3.13 -m pip install 'crossenv~=1.5.0'; \
python3.13 -m crossenv /build/crosspy/bin/python3.13 /build/venv ${MACHINE_ARG} --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc; \
python3.13 -m crossenv /build/crosspy/bin/python3.13 /build/venv ${MACHINE_ARG} --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc ${EXTRA_CROSSENV_ARGS}; \
/build/venv/bin/cross-pip install wheel;

COPY pip-${ARCH}.conf /build/venv/cross/pip.conf
Expand Down
5 changes: 3 additions & 2 deletions cross-ubuntu-py/Dockerfile.py39
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ COPY --from=pycompile /build/crosspy /build/crosspy

ARG ARCH=invalid-arch
ARG TARGET_HOST=invalid-target-host
ARG EXTRA_CROSSENV_ARGS=

RUN set -xe; \
ldconfig; \
python3.9 -m pip install crossenv==1.4.0; \
python3.9 -m crossenv /build/crosspy/bin/python3.9 /build/venv --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc; \
python3.9 -m pip install crossenv==1.5.0; \
python3.9 -m crossenv /build/crosspy/bin/python3.9 /build/venv --sysroot=$(${TARGET_HOST}-gcc -print-sysroot) --env UNIXCONFDIR=/build/venv/cross/etc ${EXTRA_CROSSENV_ARGS}; \
/build/venv/bin/cross-pip install wheel;

COPY pip-${ARCH}.conf /build/venv/cross/pip.conf
Expand Down
1 change: 1 addition & 0 deletions cross-ubuntu-py/py.mk
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ build/cross-roborio-py313:
--build-arg AC_TARGET_HOST=$(AC_TARGET_HOST_ROBORIO) \
--build-arg VERSION=$(VERSION_ROBORIO) \
--build-arg MACHINE_ARG="--machine=roborio" \
--build-arg EXTRA_CROSSENV_ARGS="--platform-tag=linux_roborio" \
-f Dockerfile.py313

.PHONY: push/cross-roborio-py313
Expand Down

0 comments on commit f6a1dfd

Please sign in to comment.