ripe-alarm-8919
02/27/2025, 11:05 PM***@pypi*** does not currently support source distributionsBut later during download step: https://github.com/Netflix/metaflow/blob/master/metaflow/plugins/pypi/pip.py#L154C1-L161C33
# build wheels if needed
with ThreadPoolExecutor() as executor:
def _build(key, package):
dest = "{prefix}/.pip/built_wheels/{key}".format(prefix=prefix, key=key)
cmd = [
"wheel",
"--no-deps",
I’m not quite following why it still trys to pip wheel
if it doesn’t intend to support source distribution? 🤔ripe-alarm-8919
02/27/2025, 11:06 PMancient-application-36103
02/27/2025, 11:31 PMripe-alarm-8919
02/27/2025, 11:33 PMripe-alarm-8919
02/28/2025, 12:01 AM# If source url is not a wheel, we need to build the target.
res["require_build"] = not res["url"].endswith(".whl")
but if the source url is not a wheel, what is it? (probably not a tar.gz ?)
why would it not face the same cross platform build problem then🤔ancient-application-36103
02/28/2025, 12:24 AMripe-alarm-8919
02/28/2025, 4:39 AMsquare-wire-39606
02/28/2025, 4:42 AMripe-alarm-8919
03/17/2025, 11:44 PMripe-alarm-8919
03/17/2025, 11:44 PMancient-application-36103
03/18/2025, 1:33 AMripe-alarm-8919
03/18/2025, 6:00 PMancient-application-36103
03/18/2025, 6:01 PMripe-alarm-8919
03/18/2025, 6:06 PMripe-alarm-8919
03/18/2025, 6:09 PMbash .git/hooks/pre-commit
should doancient-application-36103
03/18/2025, 6:27 PMripe-alarm-8919
03/19/2025, 11:58 PMit is tricky because one needs to build the source to generate downstream dependency graphI wonder why git dependencies doesn’t have this problem. When installing from git repo, it still need to resolve all its dependencies right? why pip can resolve git dependencies with those
--platform
options but not sdist? (E.g. if I unpack a sdist and upload source code to github, what’s the difference does it make to pip?)
There is a possibility to make it work when the local_platform is the same as the target_platformI think the use case can be larger. If the sdist is pure python, then I’d expect it always to work. E.g. If I build sdist into
thrift-0.20.0-py3-none-any.whl
on my macos arm64, then the same whl should work on my remote linux64 right?dry-beach-38304
03/20/2025, 9:22 AMripe-alarm-8919
03/21/2025, 8:21 AM