97bc5d7853
Using a custom pypi mirror can be very convenient, making image builds substantially faster - because we create multiple virtual environments we benefit more than single-virtualenv users would. Change-Id: I997daf1f9477c447e1fb30818aea9e80a49b31a6
9 lines
198 B
Bash
Executable file
9 lines
198 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
MIRROR_SOURCE=~/.cache/image-create/pypi/mirror/
|
|
MIRROR_TARGET=$TMP_MOUNT_PATH/tmp/pypi
|
|
|
|
sudo mkdir -p $MIRROR_TARGET
|
|
sudo mount --bind $MIRROR_SOURCE $TMP_MOUNT_PATH/tmp/pypi
|