Skip to content

Commit

Permalink
add usage docs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH committed Sep 14, 2023
1 parent 78cb7bb commit e53b464
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion scripts/pypi_build
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
#!/bin/bash

# Determine the script's directory (even if it's a symbolic link)
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
SCRIPTS_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SRC_DIR="$( cd -P "$( dirname "$SCRIPTS_DIR" )" && pwd )"

# List of plugins to build
plugins=("rastervision_pipeline" "rastervision_aws_batch" "rastervision_aws_s3" "rastervision_core" "rastervision_pytorch_learner" "rastervision_pytorch_backend" "rastervision_gdal_vsi")

# Usage documentation
function usage() {
echo "Usage: $(basename "$0") [--test]"
echo ""
echo "Build Raster Vision plugins and top-level package."
}

# Check for command-line arguments
if [[ "$1" == "--help" || "$1" == "-h" ]]; then
usage
exit
fi

# Function to build a plugin
build_plugin() {
function build_plugin() {
cd "$SRC_DIR/$1"
echo "Building $1 ... "
python setup.py sdist bdist_wheel
Expand Down

0 comments on commit e53b464

Please sign in to comment.