Skip to content

Add main entry points for main and admin CLIs#100

Merged
AlexJones0 merged 1 commit intolowRISC:masterfrom
AlexJones0:main_entry_points
Feb 17, 2026
Merged

Add main entry points for main and admin CLIs#100
AlexJones0 merged 1 commit intolowRISC:masterfrom
AlexJones0:main_entry_points

Conversation

@AlexJones0
Copy link
Contributor

Not sure if there is any reason these were missing, but if there isn't then this PR introduces explicit main entry points to the two CLIs, allowing them to be run with Python directly. It can be helpful if making changes to DVSim and you want/need to run DVSim without rebuilding DVSim or using an editable package

This lets us also run the CLIs directly via Python by defining an
explicit entry point to both CLIs if executed directly.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
@machshev
Copy link
Collaborator

There isn't really any reason not to have this as far as I'm aware...
I always develop with an editable package, so don't need to run as a module.

@AlexJones0
Copy link
Contributor Author

AlexJones0 commented Feb 16, 2026

I also use an editable package - I forget why I found them useful, I think it was because I made changes that broke DVSim as a whole, but it was still useful for me to be able to run the CLI with the errors and I was running into issues with the editable package? I don't particularly remember, maybe I just didn't have it configured as editable.

Either way it will make the DVSim CLIs more flexible in general, so no harm 😅

@AlexJones0 AlexJones0 added this pull request to the merge queue Feb 17, 2026
Merged via the queue into lowRISC:master with commit 709117f Feb 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants