chipfoundry-cli 1.2.7__tar.gz → 1.2.8__tar.gz
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.
- {chipfoundry_cli-1.2.7 → chipfoundry_cli-1.2.8}/PKG-INFO +1 -1
- {chipfoundry_cli-1.2.7 → chipfoundry_cli-1.2.8}/chipfoundry_cli/main.py +34 -33
- {chipfoundry_cli-1.2.7 → chipfoundry_cli-1.2.8}/pyproject.toml +1 -1
- {chipfoundry_cli-1.2.7 → chipfoundry_cli-1.2.8}/LICENSE +0 -0
- {chipfoundry_cli-1.2.7 → chipfoundry_cli-1.2.8}/README.md +0 -0
- {chipfoundry_cli-1.2.7 → chipfoundry_cli-1.2.8}/chipfoundry_cli/__init__.py +0 -0
- {chipfoundry_cli-1.2.7 → chipfoundry_cli-1.2.8}/chipfoundry_cli/utils.py +0 -0
|
@@ -569,40 +569,41 @@ def gpio_config(project_root):
|
|
|
569
569
|
console.print(f"[green]✓ Updated {user_defines_path}[/green]")
|
|
570
570
|
|
|
571
571
|
# Run gen_gpio_defaults.py script after updating user_defines.v
|
|
572
|
+
# DISABLED: Removed by default due to file path issues
|
|
572
573
|
# Look for caravel directory in common locations
|
|
573
|
-
caravel_paths = [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
]
|
|
578
|
-
|
|
579
|
-
gen_gpio_script = None
|
|
580
|
-
for caravel_path in caravel_paths:
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
if gen_gpio_script:
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
else:
|
|
604
|
-
|
|
605
|
-
|
|
574
|
+
# caravel_paths = [
|
|
575
|
+
# project_root / 'caravel',
|
|
576
|
+
# project_root / 'dependencies' / 'caravel',
|
|
577
|
+
# project_root.parent / 'caravel', # If caravel is sibling to project
|
|
578
|
+
# ]
|
|
579
|
+
#
|
|
580
|
+
# gen_gpio_script = None
|
|
581
|
+
# for caravel_path in caravel_paths:
|
|
582
|
+
# script_path = caravel_path / 'scripts' / 'gen_gpio_defaults.py'
|
|
583
|
+
# if script_path.exists():
|
|
584
|
+
# gen_gpio_script = script_path
|
|
585
|
+
# break
|
|
586
|
+
#
|
|
587
|
+
# if gen_gpio_script:
|
|
588
|
+
# try:
|
|
589
|
+
# console.print("[cyan]Generating GPIO defaults for simulation...[/cyan]")
|
|
590
|
+
# result = subprocess.run(
|
|
591
|
+
# [sys.executable, str(gen_gpio_script)],
|
|
592
|
+
# cwd=str(project_root),
|
|
593
|
+
# capture_output=True,
|
|
594
|
+
# text=True,
|
|
595
|
+
# check=True
|
|
596
|
+
# )
|
|
597
|
+
# console.print(f"[green]✓ Generated GPIO defaults[/green]")
|
|
598
|
+
# except subprocess.CalledProcessError as e:
|
|
599
|
+
# console.print(f"[yellow]Warning: Failed to run gen_gpio_defaults.py: {e}[/yellow]")
|
|
600
|
+
# if e.stderr:
|
|
601
|
+
# console.print(f"[dim]{e.stderr}[/dim]")
|
|
602
|
+
# except Exception as e:
|
|
603
|
+
# console.print(f"[yellow]Warning: Error running gen_gpio_defaults.py: {e}[/yellow]")
|
|
604
|
+
# else:
|
|
605
|
+
# console.print("[dim]Note: gen_gpio_defaults.py not found. Caravel may not be installed yet.[/dim]")
|
|
606
|
+
# console.print("[dim]Run 'cf setup' to install Caravel, or run the script manually after setup.[/dim]")
|
|
606
607
|
except Exception as e:
|
|
607
608
|
console.print(f"[red]Error updating user_defines.v: {e}[/red]")
|
|
608
609
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|