Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move ceictl to be an entry point rather than a script in ./bin

  • Loading branch information...
commit 2bedb755c344bcbcacaf826bc7c0761239e63ea3 1 parent 92f4d61
@oldpatricka oldpatricka authored
Showing with 8 additions and 2 deletions.
  1. +3 −1 bin/ceictl → ceiclient/cli.py
  2. +5 −1 setup.py
View
4 bin/ceictl → ceiclient/cli.py
@@ -52,7 +52,7 @@ def using_pyon():
opts = parser.parse_args()
-if __name__ == '__main__':
+def main():
if opts.service not in SERVICES:
raise ValueError('Service %s is not supported' % opts.service)
@@ -111,4 +111,6 @@ def using_pyon():
conn.disconnect()
+if __name__ == '__main__':
+ main()
View
6 setup.py
@@ -10,6 +10,10 @@
author='Nimbus team',
author_email='nimbus@mcs.anl.gov',
packages=['ceiclient'],
- scripts=['bin/ceictl'],
+ entry_points={
+ 'console_scripts': [
+ 'ceictl=ceiclient.cli:main'
+ ]
+ },
install_requires=['cloudinitd==1.2', 'dashi', 'Jinja2', 'PyYAML', 'mock', 'nose'],
test_suite='nose.collector')
Please sign in to comment.
Something went wrong with that request. Please try again.