File tree Expand file tree Collapse file tree 2 files changed +6
-28
lines changed Expand file tree Collapse file tree 2 files changed +6
-28
lines changed Original file line number Diff line number Diff line change 3131 "Fabric" ,
3232 "__version__" ,
3333]
34-
35-
36- def _cli_entry_point () -> None :
37- from lightning_utilities .core .imports import ModuleAvailableCache , RequirementCache
38-
39- if not (
40- ModuleAvailableCache ("lightning.app" )
41- if RequirementCache ("lightning-utilities<0.10.0" )
42- else RequirementCache (module = "lightning.app" )
43- ):
44- print ("The `lightning` command requires additional dependencies: `pip install lightning[app]`" )
45- sys .exit (1 )
46-
47- from lightning .app .cli .lightning_cli import main
48-
49- main ()
Original file line number Diff line number Diff line change @@ -57,18 +57,12 @@ def _legacy_main() -> None:
5757
5858 """
5959 hparams = sys .argv [1 :]
60- if len (hparams ) >= 2 and hparams [0 ] == "run" :
61- if hparams [1 ] == "model" :
62- print (
63- "`lightning run model` is deprecated and will be removed in future versions."
64- " Please call `fabric run` instead."
65- )
66- _main ()
67- return
68-
69- from lightning .app .cli .lightning_cli import main as main_cli
70-
71- main_cli ()
60+ if len (hparams ) >= 2 and hparams [0 ] == "run" and hparams [1 ] == "model" :
61+ print (
62+ "`lightning run model` is deprecated and will be removed in future versions."
63+ " Please call `fabric run` instead."
64+ )
65+ _main ()
7266 return
7367
7468 if _LIGHTNING_SDK_AVAILABLE :
You can’t perform that action at this time.
0 commit comments