Groups that share packages across users can save storage and network traffic by installing packages from a shared directory (e.g. on a network file server).
quilt_packages directory on the shared file system.
QUILT_PRIMARY_PACKAGE_DIR to the path for
quilt_packages in step 1.
# select a path that you control & is durable, e.g.export SHARE_PATH=YOUR_SHARED_PATH/quilt_packagesexport QUILT_PRIMARY_PACKAGE_DIR=$SHARE_PATHmkdir -p "$SHARE_PATH"chmod o+r "$SHARE_PATH"
Install packages to the shared directory
quilt build USERNAME/PACKAGE PATH_TO_BUILD_YMLquilt install USERNAME/PACKAGE
Set read permissions on shared directory and sub-directories
chgrp -R readers "$QUILT_PRIMARY_PACKAGE_DIR"chmod -R g+rx "$QUILT_PRIMARY_PACKAGE_DIR"
Each reader should set the following environment variable:
# consider setting this in .bashrcexport QUILT_PACKAGE_DIRS=$SHARE_PATH
Readers can can import shared packages as follows
from quilt.data.USERNAME import PACKAGE
Quilt will first check
QUILT_PRIMARY (defaults to the local machine) and then check
QUILT_PACKAGE_DIRS (if available) when importing a package.
Refer to the Python API docs for details on quilt commands.