File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,14 +72,15 @@ def run(self):
7272with open (ver_file ) as f :
7373 exec (f .read ())
7474
75- entry_points = ["{}=scripts.{}:main" .format (
76- os .path .basename (s ), os .path .basename (s ).split ("." )[0 ])
77- for s in SCRIPTS ]
75+ def _format_entry_point (_script , _base ):
76+ return "{}={}.{}:main" .format (os .path .basename (_script ), _base ,
77+ os .path .basename (_script ).split ("." )[0 ])
78+
79+ entry_points = [_format_entry_point (s , "scripts" ) for s in SCRIPTS ]
7880
7981if os .getenv ('SCILPY_LEGACY' ) != 'False' :
80- entry_points += ["{}=scripts.legacy.{}:main" .format (
81- os .path .basename (s ), os .path .basename (s ).split ("." )[0 ])
82- for s in LEGACY_SCRIPTS ]
82+ entry_points += [_format_entry_point (s , "scripts.legacy" )
83+ for s in LEGACY_SCRIPTS ]
8384
8485opts = dict (name = NAME ,
8586 maintainer = MAINTAINER ,
You can’t perform that action at this time.
0 commit comments