Skip to content

Commit 021727c

Browse files
committed
install script uses versions script
1 parent 8538d3c commit 021727c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

scripts/install.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,22 @@ log_error() { echo -e "${RED}[ERROR]${NC} $1"; }
1818
log_warning() { echo -e "${YELLOW}[WARNING]${NC} $1";}
1919

2020
# Configuration
21-
PYTORCH_VERSION="2.9.0.dev20250905"
2221
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
22+
VERSIONS_FILE="$SCRIPT_DIR/../assets/versions.sh"
23+
24+
if [ ! -f "$VERSIONS_FILE" ]; then
25+
log_error "Versions file not found: $VERSIONS_FILE"
26+
exit 1
27+
fi
28+
29+
source "$VERSIONS_FILE"
30+
31+
# Validate required variables are set
32+
if [ -z "${PYTORCH_VERSION:-}" ]; then
33+
log_error "PYTORCH_VERSION not set in $VERSIONS_FILE"
34+
exit 1
35+
fi
36+
2337
WHEEL_DIR="$SCRIPT_DIR/../assets/wheels"
2438
RELEASE_TAG="v0.0.0-93025"
2539
GITHUB_REPO="meta-pytorch/forge"

0 commit comments

Comments
 (0)