@@ -737,17 +737,8 @@ def _configure(self, reconfigure: bool = False) -> None:
737
737
]
738
738
if reconfigure :
739
739
setup_args .insert (0 , '--reconfigure' )
740
-
741
740
self ._run (['meson' , 'setup' , * setup_args ])
742
741
743
- @cached_property
744
- def _wheel_builder (self ) -> _WheelBuilder :
745
- return _WheelBuilder (
746
- self ._metadata ,
747
- self ._manifest ,
748
- self ._limited_api ,
749
- )
750
-
751
742
@property
752
743
def _build_command (self ) -> List [str ]:
753
744
assert self ._ninja is not None # help mypy out
@@ -891,13 +882,15 @@ def sdist(self, directory: Path) -> pathlib.Path:
891
882
def wheel (self , directory : Path ) -> pathlib .Path :
892
883
"""Generates a wheel (binary distribution) in the specified directory."""
893
884
self .build ()
894
- file = self ._wheel_builder .build (directory )
885
+ builder = _WheelBuilder (self ._metadata , self ._manifest , self ._is_pure , self ._limited_api )
886
+ file = builder .build (directory )
895
887
assert isinstance (file , pathlib .Path )
896
888
return file
897
889
898
890
def editable (self , directory : Path ) -> pathlib .Path :
899
891
self .build ()
900
- file = self ._wheel_builder .build_editable (directory , self ._source_dir , self ._build_dir , self ._build_command , self ._editable_verbose )
892
+ builder = _WheelBuilder (self ._metadata , self ._manifest , self ._is_pure , self ._limited_api )
893
+ file = builder .build_editable (directory , self ._source_dir , self ._build_dir , self ._build_command , self ._editable_verbose )
901
894
assert isinstance (file , pathlib .Path )
902
895
return file
903
896
0 commit comments