Skip to content

Commit

Permalink
pre-built folder to speed up armv7 rebuilds of python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
schelleg committed Jul 21, 2021
1 parent 884dd4e commit a7ed73a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sdbuild/packages/python_packages_focal/post.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -x
set -e

target=$1
target_dir=root/.cache/pip
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

sudo mkdir -p $script_dir/pre-built/$target_dir
sudo cp -rf $target/$target_dir/wheels $script_dir/pre-built/$target_dir
3 changes: 3 additions & 0 deletions sdbuild/packages/python_packages_focal/pre-built/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
folder gets populated with wheels built from Python source inside a chroot (e.g. numpy for armhf)

See pre.sh and post.sh in the package folder to see how files are copied to/from the sdcard image
11 changes: 11 additions & 0 deletions sdbuild/packages/python_packages_focal/pre.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -x
set -e

target=$1
target_dir=root/.cache/pip
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

sudo mkdir -p $target/$target_dir
sudo cp -rf $script_dir/pre-built/$target_dir/* $target/$target_dir

0 comments on commit a7ed73a

Please sign in to comment.