-
Notifications
You must be signed in to change notification settings - Fork 13.7k
publish wheel for apache-flink-libraries #26844
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
@dimbleby Please could you follow https://flink.apache.org/how-to-contribute/contribute-code/ and start the tile of the PR with either [Jira number] or [hotfix]. |
looks like too much trouble, sorry. obvs I think you should be publishing wheels, but I am not invested enough to be sinking time into it |
Hey, |
Here you can find more background on why it doesn't publish wheel for |
DId you mean to write that the other way round? Or perhaps you are agreeing with me? The contents are essentially irrelevant, even pure python packages should publish wheels. Installation in python is always from wheel, so it is more or less impossible for sdist to be faster than wheel: installing from sdist means first building the wheel, and then installing from wheel. Another good reason to publish wheels is so as not to expose users to possible errors in that sdist->wheel build process. Eg in recent times both Edit: in the linked comment you wrote
that's just not correct and perhaps this is the misunderstanding |
@dimbleby Your points are generally correct. However, it may not hold for the package Besides, I found that pyspark doesn't publish wheel package (it contains only pure Python code), see https://pypi.org/project/pyspark/4.0.0/#files for more details. So I guess it may not be that serious in practice. |
Not sure what pyspark has to do with this but it is an outlier - eg see https://pythonwheels.com/ - perhaps I will raise an issue at their repository too. I really think you are making this harder than it needs to be! Your package is not unusually big, you do not publish unusually often, including a wheel is simply the normal and expected thing to do. If you absolutely insist on publishing only one distribution, it would be better for users if that were the wheel, rather than the sdist. You could make the sdist available eg through github. But publishing both should be fine. |
Oh, this is not true. There are currently 12 wheel packages for Regarding the release frequency, the major release is about 5 months, however, we should also consider bugfix release, which is about one to two months. |
I don't want to change anything unless it's clear in which case users will encounter problems. |
There would be exactly one wheel for apache-flink-libraries, not twelve, as you do not have anything platform-specific in it. "I don't want to" is not something I can disagree with! |
OK. Then it's fine for me~ |
What is the purpose of the change
Publish a wheel for apache-flink-libraries
Installation in python is always from wheel. So if maintainers do not publish a wheel then every install has to build one: which is slower, and can go wrong. Better to publish once and for all.
Also direct execution of
setup.py
is deprecated. I see that you are usinguv
, so I have useduv build
to build distributions.Brief change log
Publish a wheel for apache-flink-libraries
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)no to all
Documentation
no