Skip to content

Commit

Permalink
Use console_scripts entry_points in the setup.py file (Thanks to Wes …
Browse files Browse the repository at this point in the history
…Turner)
  • Loading branch information
Ask Solem committed Dec 22, 2009
1 parent b8c5b92 commit 85b4fa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion celerymonitor/bin/celerymond.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def parse_options(arguments):
return options


if __name__ == "__main__":
def main():
options = parse_options(sys.argv[1:])
run_monitor(**vars(options))

if __name__ == "__main__":
main()
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,10 @@ def run(self):
"Topic :: System :: Monitoring",
"Topic :: System :: Distributed Computing",
],
entrypoints={
"console_scripts": [
"celerymon = celerymonitor.bin.celerymond:main",
],
},
long_description=long_description,
)

0 comments on commit 85b4fa7

Please sign in to comment.