-
Notifications
You must be signed in to change notification settings - Fork 3k
Use packaging to handle versions #2777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
|
|
||
| if tuple(int(i) for i in pyarrow.__version__.split(".")[:3]) < (1, 0, 0): | ||
| if _version.parse(pyarrow.__version__).major < 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why we make this validation here, as pyarrow least version is already pinned in setup.py install_requires.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because in certain environments (google colab, kaggle kernels), it may create some issues.
For example on colab, pyarrow is already installed. When colab only had pyarrow 0.0.6, installing datasets would install pyarrow >= 1.0.0 BUT it would also require the kernel to be restarted for the update to take effect.
Because of that you could end up with an old version of pyarrow until your restart the kernel
lhoestq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome ! This is much cleaner :)
Use packaging module to handle/validate/check versions of Python packages.
Related to #2769.