python-wheel-build / fromager

Build your own wheels
https://fromager.readthedocs.io/en/latest/
Apache License 2.0
4 stars 9 forks source link

unused `default_get_install_dependencies` and not using the customization `get_install_dependencies` #305

Closed shubhbapna closed 1 month ago

shubhbapna commented 1 month ago

I couldn't find any references of default_get_install_dependencies: https://github.com/search?q=repo%3Apython-wheel-build%2Ffromager%20default_get_install_dependencies&type=code (apart from the docs)

Similarly for the custom override get_install_dependencies I can't find any reference to it: https://github.com/search?q=repo%3Apython-wheel-build%2Ffromager+get_install_dependencies&type=code

It seems like we are using get_install_dependencies_of_wheel over these 2 functions: https://github.com/python-wheel-build/fromager/blob/main/src/fromager/sdist.py#L269

dhellmann commented 1 month ago

Those older functions were the old approach. Standardizing on building the wheel then getting the installation dependencies means we can get the dependencies from pre-built wheels, too. We also found that asking for the installation dependencies from the source tree was doing a large portion of the build work in order to produce the metadata that had the answer, so we might as well just build the wheel.

I think we can delete the old functions and override.