51
51
__version__ = '0.4.0'
52
52
53
53
54
- class _depstr :
55
- ninja = 'ninja >= 1.10.0'
56
- patchelf_wrapper = 'patchelf-wrapper'
57
- pep621 = 'pep621 >= 0.3.0'
58
- wheel = 'wheel >= 0.36.0' # noqa: F811
59
-
60
-
61
54
_COLORS = {
62
55
'cyan' : '\33 [36m' ,
63
56
'yellow' : '\33 [93m' ,
@@ -762,16 +755,6 @@ def _project(config_settings: Optional[Dict[Any, Any]]) -> Iterator[Project]:
762
755
yield project
763
756
764
757
765
- def get_requires_for_build_sdist (
766
- config_settings : Optional [Dict [Any , Any ]] = None ,
767
- ) -> List [str ]:
768
- dependencies = []
769
- with _project (config_settings ) as project :
770
- if project .pep621 :
771
- dependencies .append (_depstr .pep621 )
772
- return dependencies
773
-
774
-
775
758
def build_sdist (
776
759
sdist_directory : str ,
777
760
config_settings : Optional [Dict [Any , Any ]] = None ,
@@ -783,18 +766,6 @@ def build_sdist(
783
766
return project .sdist (out ).name
784
767
785
768
786
- def get_requires_for_build_wheel (
787
- config_settings : Optional [Dict [str , str ]] = None ,
788
- ) -> List [str ]:
789
- dependencies = [_depstr .wheel , _depstr .ninja ]
790
- with _project (config_settings ) as project :
791
- if not project .is_pure and platform .system () == 'Linux' :
792
- dependencies .append (_depstr .patchelf_wrapper )
793
- if project .pep621 :
794
- dependencies .append (_depstr .pep621 )
795
- return dependencies
796
-
797
-
798
769
def build_wheel (
799
770
wheel_directory : str ,
800
771
config_settings : Optional [Dict [Any , Any ]] = None ,
0 commit comments