modify the vendor folder aarch64
This commit is contained in:
@@ -10,7 +10,19 @@ fi
|
||||
|
||||
# Detect platform
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
PLATFORM="linux-x86_64"
|
||||
ARCH=$(uname -m)
|
||||
case "$ARCH" in
|
||||
x86_64)
|
||||
PLATFORM="linux-x86_64"
|
||||
;;
|
||||
aarch64|arm64)
|
||||
PLATFORM="linux-aarch64"
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unsupported Linux architecture: $ARCH"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
ARCH=$(uname -m)
|
||||
if [[ "$ARCH" == "arm64" ]]; then
|
||||
@@ -24,7 +36,7 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Detected platform: $PLATFORM"
|
||||
echo "Detected platform: $PLATFORM ($(uname -m))"
|
||||
|
||||
# Check if vendor directory exists
|
||||
VENDOR_PATH="vendor/$PLATFORM"
|
||||
@@ -34,10 +46,26 @@ fi
|
||||
|
||||
if [ ! -d "$VENDOR_PATH" ]; then
|
||||
echo "ERROR: $VENDOR_PATH not found!"
|
||||
echo ""
|
||||
echo "Available vendor directories:"
|
||||
ls -d vendor/*/ 2>/dev/null || echo " (none)"
|
||||
echo ""
|
||||
if [ "$DEV_MODE" = true ]; then
|
||||
echo "Run 'make vendor-linux-dev' to generate dev wheels"
|
||||
echo "To build dev wheels:"
|
||||
if [[ "$PLATFORM" == "linux-x86_64" ]]; then
|
||||
echo " make vendor-linux-dev"
|
||||
elif [[ "$PLATFORM" == "linux-aarch64" ]]; then
|
||||
echo " make vendor-linux-arm-dev"
|
||||
fi
|
||||
else
|
||||
echo "Run 'make vendor-linux' or 'make vendor-macos' to generate wheels"
|
||||
echo "To build runtime wheels:"
|
||||
if [[ "$PLATFORM" == "linux-x86_64" ]]; then
|
||||
echo " make vendor-linux"
|
||||
elif [[ "$PLATFORM" == "linux-aarch64" ]]; then
|
||||
echo " make vendor-linux-arm"
|
||||
elif [[ "$PLATFORM" == "macos-arm64" ]]; then
|
||||
echo " make vendor-macos"
|
||||
fi
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
@@ -47,7 +75,7 @@ if ! command -v python3.12 &> /dev/null; then
|
||||
echo "ERROR: Python 3.12 not found!"
|
||||
echo "Please install Python 3.12:"
|
||||
echo " macOS: brew install python@3.12"
|
||||
echo " Linux: apt-get install python3.12 python3.12-venv"
|
||||
echo " Debian/Ubuntu: apt-get install python3.12 python3.12-venv"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -111,7 +139,6 @@ if [ "$DEV_MODE" = true ]; then
|
||||
echo "⚠️ pytest not found in dev install!"
|
||||
fi
|
||||
else
|
||||
# Only mention pytest in production mode
|
||||
echo "⚠️ Skipping pytest (use --dev for full test suite)"
|
||||
fi
|
||||
|
||||
@@ -129,6 +156,7 @@ echo "=========================================="
|
||||
echo ""
|
||||
echo "Virtual environment: $VENV_DIR"
|
||||
echo "Python version: $(python --version)"
|
||||
echo "Platform: $PLATFORM"
|
||||
if [ "$DEV_MODE" = true ]; then
|
||||
echo "Mode: Development (pytest installed)"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user