File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,9 @@ def parse_options(arguments):
176
176
options , values = parser .parse_args (arguments )
177
177
return options
178
178
179
-
180
- if __name__ == "__main__" :
179
+ def main ():
181
180
options = parse_options (sys .argv [1 :])
182
181
run_clockservice (** vars (options ))
182
+
183
+ if __name__ == "__main__" :
184
+ main ()
Original file line number Diff line number Diff line change @@ -275,7 +275,9 @@ def set_process_status(info):
275
275
info = "%s (%s)" % (info , " " .join (sys .argv [arg_start :]))
276
276
platform .set_mp_process_title ("celeryd" , info = info )
277
277
278
-
279
- if __name__ == "__main__" :
278
+ def main ():
280
279
options = parse_options (sys .argv [1 :])
281
280
run_worker (** vars (options ))
281
+
282
+ if __name__ == "__main__" :
283
+ main ()
Original file line number Diff line number Diff line change @@ -130,5 +130,12 @@ def run(self):
130
130
"Topic :: System :: Distributed Computing" ,
131
131
"Topic :: Software Development :: Libraries :: Python Modules" ,
132
132
],
133
+ entry_points = {
134
+ 'console_scripts' : [
135
+ 'celeryd = celery.bin.celeryd:main' ,
136
+ 'celeryinit = celery.bin.celeryinit:main' ,
137
+ 'celerybeat = celery.bin.celerybeat:main'
138
+ ]
139
+ },
133
140
long_description = long_description ,
134
141
)
You can’t perform that action at this time.
0 commit comments