mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-08-06 19:28:06 +00:00
chore: align installer leftovers with the dependency cleanup
first_time_install.sh's fallback secrets heredoc (used only when the template is missing) still wrote the legacy youtube block — now matches the template (github only). install_dependencies_apt.py drops the IMPORT_NAME_MAP entries for packages no longer in its install lists and a stale google-api reference in a docstring. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SXb4mKcAkVaxkeTb3YnAdr
This commit is contained in:
@@ -821,10 +821,6 @@ if [ ! -f "$PROJECT_ROOT_DIR/config/config_secrets.json" ]; then
|
|||||||
echo "⚠ Template config/config_secrets.template.json not found; creating a minimal secrets file"
|
echo "⚠ Template config/config_secrets.template.json not found; creating a minimal secrets file"
|
||||||
cat > "$PROJECT_ROOT_DIR/config/config_secrets.json" <<'EOF'
|
cat > "$PROJECT_ROOT_DIR/config/config_secrets.json" <<'EOF'
|
||||||
{
|
{
|
||||||
"youtube": {
|
|
||||||
"api_key": "YOUR_YOUTUBE_API_KEY",
|
|
||||||
"channel_id": "YOUR_YOUTUBE_CHANNEL_ID"
|
|
||||||
},
|
|
||||||
"github": {
|
"github": {
|
||||||
"api_token": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
|
"api_token": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ def install_via_pip(package_name: str) -> Tuple[bool, str]:
|
|||||||
pip RECORD file, so an uninstall attempt fails with "uninstall-no-record-file"
|
pip RECORD file, so an uninstall attempt fails with "uninstall-no-record-file"
|
||||||
and aborts the whole install. With --ignore-installed, pip lays the new
|
and aborts the whole install. With --ignore-installed, pip lays the new
|
||||||
version down in /usr/local where it shadows the apt copy instead of removing
|
version down in /usr/local where it shadows the apt copy instead of removing
|
||||||
it. This matters when a pip dependency (google-api-python-client pulls a
|
it. This matters when a pip dependency needs to upgrade an apt-managed
|
||||||
newer requests) needs to upgrade an apt-managed package.
|
package (e.g. a package that pulls a newer requests).
|
||||||
|
|
||||||
Returns (success, output).
|
Returns (success, output).
|
||||||
"""
|
"""
|
||||||
@@ -95,10 +95,7 @@ def install_via_pip(package_name: str) -> Tuple[bool, str]:
|
|||||||
|
|
||||||
|
|
||||||
# Distribution (pip/apt) names whose importable module name differs.
|
# Distribution (pip/apt) names whose importable module name differs.
|
||||||
IMPORT_NAME_MAP = {
|
IMPORT_NAME_MAP = {}
|
||||||
'python-dateutil': 'dateutil',
|
|
||||||
'websocket-client': 'websocket',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def check_package_installed(package_name: str) -> bool:
|
def check_package_installed(package_name: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user