Skip to content

Commit 3cb240c

Browse files
Disable automatic generation of GPIO defaults in gpio_config due to file path issues. Commented out related code for clarity and future reference.
1 parent c2eae2e commit 3cb240c

2 files changed

Lines changed: 35 additions & 34 deletions

File tree

chipfoundry_cli/main.py

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -569,40 +569,41 @@ def find_matching_mode(user_input):
569569
console.print(f"[green]✓ Updated {user_defines_path}[/green]")
570570

571571
# Run gen_gpio_defaults.py script after updating user_defines.v
572+
# DISABLED: Removed by default due to file path issues
572573
# Look for caravel directory in common locations
573-
caravel_paths = [
574-
project_root / 'caravel',
575-
project_root / 'dependencies' / 'caravel',
576-
project_root.parent / 'caravel', # If caravel is sibling to project
577-
]
578-
579-
gen_gpio_script = None
580-
for caravel_path in caravel_paths:
581-
script_path = caravel_path / 'scripts' / 'gen_gpio_defaults.py'
582-
if script_path.exists():
583-
gen_gpio_script = script_path
584-
break
585-
586-
if gen_gpio_script:
587-
try:
588-
console.print("[cyan]Generating GPIO defaults for simulation...[/cyan]")
589-
result = subprocess.run(
590-
[sys.executable, str(gen_gpio_script)],
591-
cwd=str(project_root),
592-
capture_output=True,
593-
text=True,
594-
check=True
595-
)
596-
console.print(f"[green]✓ Generated GPIO defaults[/green]")
597-
except subprocess.CalledProcessError as e:
598-
console.print(f"[yellow]Warning: Failed to run gen_gpio_defaults.py: {e}[/yellow]")
599-
if e.stderr:
600-
console.print(f"[dim]{e.stderr}[/dim]")
601-
except Exception as e:
602-
console.print(f"[yellow]Warning: Error running gen_gpio_defaults.py: {e}[/yellow]")
603-
else:
604-
console.print("[dim]Note: gen_gpio_defaults.py not found. Caravel may not be installed yet.[/dim]")
605-
console.print("[dim]Run 'cf setup' to install Caravel, or run the script manually after setup.[/dim]")
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]")
606607
except Exception as e:
607608
console.print(f"[red]Error updating user_defines.v: {e}[/red]")
608609

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "chipfoundry-cli"
3-
version = "1.2.7"
3+
version = "1.2.8"
44
description = "CLI tool to automate ChipFoundry project submission to SFTP server"
55
authors = ["ChipFoundry <marwan.abbas@chipfoundry.io>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)