Skip to content
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

[Python] Improve error messaging when installing pyarrow from source from sdist #37926

Open
jorisvandenbossche opened this issue Sep 28, 2023 · 1 comment

Comments

@jorisvandenbossche
Copy link
Member

When users do pip install pyarrow and in case this for whatever reason (unsupported platform, python version, ..) doesn't install a binary wheel, but downloads the sdist and tries to build pyarrow from source, this typically always fails (because such user typically doesn't have Arrow C++ already pre-installed) and generally with a quite confusing error message (about not having cmake, or about cmake not finding Arrow, ..)

In our setup.py, we might be able to detect / catch this situation? (not fully sure if that is entirely trivial) And in such a case provide a more informative error message?

@jorisvandenbossche
Copy link
Member Author

Some things that we might be able to check and provide a clearer error message for:

  • is cmake available?
  • can cmake find Arrow C++
  • is the version of the found Arrow C++ the same as the pyarrow version that is being installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant