@@ -103,7 +103,6 @@ def _setup_namespace_pkg_compatibility(wheel_dir: str) -> None:
103103
104104def _extract_wheel (
105105 wheel_file : str ,
106- extras : Dict [str , Set [str ]],
107106 enable_implicit_namespace_pkgs : bool ,
108107 installation_dir : Path = Path ("." ),
109108) -> None :
@@ -112,7 +111,6 @@ def _extract_wheel(
112111 Args:
113112 wheel_file: the filepath of the .whl
114113 installation_dir: the destination directory for installation of the wheel.
115- extras: a list of extras to add as dependencies for the installed wheel
116114 enable_implicit_namespace_pkgs: if true, disables conversion of implicit namespace packages and will unzip as-is
117115 """
118116
@@ -122,13 +120,11 @@ def _extract_wheel(
122120 if not enable_implicit_namespace_pkgs :
123121 _setup_namespace_pkg_compatibility (installation_dir )
124122
125- extras_requested = extras [whl .name ] if whl .name in extras else set ()
126123 requires_dist = whl .metadata .get_all ("Requires-Dist" , [])
127124 abi = f"cp{ sys .version_info .major } { sys .version_info .minor } "
128125 metadata = {
129126 "name" : whl .name ,
130127 "version" : whl .version ,
131- "extras" : list (extras_requested ),
132128 "python_version" : sys .version .partition (" " )[0 ],
133129 "requires_dist" : requires_dist ,
134130 "abi" : abi ,
@@ -157,11 +153,8 @@ def main() -> None:
157153 if args .whl_file :
158154 whl = Path (args .whl_file )
159155
160- name , extras_for_pkg = _parse_requirement_for_extra (args .requirement )
161- extras = {name : extras_for_pkg } if extras_for_pkg and name else dict ()
162156 _extract_wheel (
163157 wheel_file = whl ,
164- extras = extras ,
165158 enable_implicit_namespace_pkgs = args .enable_implicit_namespace_pkgs ,
166159 )
167160 return
0 commit comments