Skip to content

Commit

Permalink
fix(build): Do not remove README_STARTUP file required by IPython. (#223
Browse files Browse the repository at this point in the history
)

To save space on the OT-2 builds we remove tests and readme files in the post-build step which is great, unfortunately, IPython does not work without its 'README_STARTUP' file which we also removed. So Lets exclude this file when cleaning up.

Closes: RQA-2412
  • Loading branch information
vegano1 authored Feb 29, 2024
1 parent fcda738 commit 9453106
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion board/opentrons/ot2/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ cp ${BINARIES_DIR}/VERSION.json ${TARGET_DIR}/etc/VERSION.json
rm -f ${TARGET_DIR}/etc/dropbear
ln -s /var/lib/dropbear ${TARGET_DIR}/etc/dropbear

# Remove tests and README
# NOTE: DO NOT REMOVE 'README_STARTUP' as this is required by IPython and
# causes jupyter-notebook to not work without it.
find ${TARGET_DIR}/usr/lib/ -name tests -or -name test | xargs --verbose rm -rf
find ${TARGET_DIR} -type f -iname 'README*' | xargs --verbose rm -rf
find ${TARGET_DIR} -type f -iname 'README*' ! -name 'README_STARTUP' | xargs --verbose rm -rf
rm -rf ${TARGET_DIR}/usr/share/doc

0 comments on commit 9453106

Please sign in to comment.