Skip to content

Commit 5207dbe

Browse files
kiukchungfacebook-github-bot
authored andcommitted
Add monarch CLI as console script in setup.py so that the CLI is installed with the wheel
Summary: Makes it such that `pip install monarch` installs the monarch CLI. Reviewed By: colin2328 Differential Revision: D74915462 fbshipit-source-id: 24c75430ec9a510d96cb4412763882a583e4eefe
1 parent cf66d9d commit 5207dbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ def run(self):
123123
controller_C,
124124
common_C,
125125
],
126+
entry_points={
127+
"console_scripts": [
128+
"monarch=monarch.tools.cli:main",
129+
],
130+
},
126131
rust_extensions=[
127132
RustExtension(
128133
"monarch._rust_bindings",

0 commit comments

Comments
 (0)