@@ -2115,24 +2115,6 @@ def importlib_load_entry_point(spec, group, name):
21152115
21162116 command_spec_class = CommandSpec
21172117
2118- @classmethod
2119- def get_script_args (cls , dist , executable = None , wininst = False ):
2120- # for backward compatibility
2121- EasyInstallDeprecationWarning .emit ("Use get_args" , due_date = (2023 , 6 , 1 ))
2122- # This is a direct API call, it should be safe to remove soon.
2123- writer = (WindowsScriptWriter if wininst else ScriptWriter ).best ()
2124- header = cls .get_script_header ("" , executable , wininst )
2125- return writer .get_args (dist , header )
2126-
2127- @classmethod
2128- def get_script_header (cls , script_text , executable = None , wininst = False ):
2129- # for backward compatibility
2130- EasyInstallDeprecationWarning .emit ("Use get_header" , due_date = (2023 , 6 , 1 ))
2131- # This is a direct API call, it should be safe to remove soon.
2132- if wininst :
2133- executable = "python.exe"
2134- return cls .get_header (script_text , executable )
2135-
21362118 @classmethod
21372119 def get_args (cls , dist , header = None ):
21382120 """
@@ -2160,13 +2142,6 @@ def _ensure_safe_name(name):
21602142 if has_path_sep :
21612143 raise ValueError ("Path separators not allowed in script names" )
21622144
2163- @classmethod
2164- def get_writer (cls , force_windows ):
2165- # for backward compatibility
2166- EasyInstallDeprecationWarning .emit ("Use best" , due_date = (2023 , 6 , 1 ))
2167- # This is a direct API call, it should be safe to remove soon.
2168- return WindowsScriptWriter .best () if force_windows else cls .best ()
2169-
21702145 @classmethod
21712146 def best (cls ):
21722147 """
@@ -2193,13 +2168,6 @@ def get_header(cls, script_text="", executable=None):
21932168class WindowsScriptWriter (ScriptWriter ):
21942169 command_spec_class = WindowsCommandSpec
21952170
2196- @classmethod
2197- def get_writer (cls ):
2198- # for backward compatibility
2199- EasyInstallDeprecationWarning .emit ("Use best" , due_date = (2023 , 6 , 1 ))
2200- # This is a direct API call, it should be safe to remove soon.
2201- return cls .best ()
2202-
22032171 @classmethod
22042172 def best (cls ):
22052173 """
@@ -2287,11 +2255,6 @@ def _get_script_args(cls, type_, name, header, script_text):
22872255 yield (m_name , load_launcher_manifest (name ), 't' )
22882256
22892257
2290- # for backward-compatibility
2291- get_script_args = ScriptWriter .get_script_args
2292- get_script_header = ScriptWriter .get_script_header
2293-
2294-
22952258def get_win_launcher (type ):
22962259 """
22972260 Load the Windows launcher (executable) suitable for launching a script.
0 commit comments