ctx-reels 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/setup.sh +14 -1
package/package.json
CHANGED
package/scripts/setup.sh
CHANGED
|
@@ -56,7 +56,20 @@ if [ ! -d "$VENV_DIR" ]; then
|
|
|
56
56
|
fi
|
|
57
57
|
|
|
58
58
|
echo "📦 Installing faster-whisper..."
|
|
59
|
-
|
|
59
|
+
|
|
60
|
+
# Set PKG_CONFIG_PATH for Homebrew FFmpeg (needed for PyAV/av build)
|
|
61
|
+
if [ -d "/opt/homebrew/lib/pkgconfig" ]; then
|
|
62
|
+
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
|
|
63
|
+
elif [ -d "/usr/local/lib/pkgconfig" ]; then
|
|
64
|
+
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# Try installing with pre-built wheels first, fall back to source build
|
|
68
|
+
"$VENV_DIR/bin/pip" install -q --upgrade pip 2>/dev/null
|
|
69
|
+
if ! "$VENV_DIR/bin/pip" install -q faster-whisper 2>/dev/null; then
|
|
70
|
+
echo "⚠️ Source build failed. Trying pre-built binaries only..."
|
|
71
|
+
"$VENV_DIR/bin/pip" install -q --only-binary :all: faster-whisper
|
|
72
|
+
fi
|
|
60
73
|
echo "✅ faster-whisper installed"
|
|
61
74
|
|
|
62
75
|
# 6. Create .env if not exists
|