Skip to content

Conversation

@jorisvandenbossche
Copy link
Member

@jorisvandenbossche jorisvandenbossche commented Aug 1, 2024

Rationale for this change

As mentioned in #41494 (comment) (while refactoring how to specify to the pyarrow build which components to build, i.e. to let it follow the Arrow C++ components by default), we do have a "feature" that you can specify which components to build directly to setup.py, like python setup.py build_ext --with-parquet.

This is currently not used in our own codebase, and is also not documented anymore, but we did document it in the past.

In general calling setup.py directly is not recommended (although for development installs, it is still useful), furthermore there are alternatives to those flags (relying on Arrow C++ or setting an environment variable), and this would go away anyhow in case we would move away from setuptools at some point.
So I think it is better to deprecate those options.

What changes are included in this PR?

Whenever a user passes such a --with- flag, a warning is raised.

Are these changes tested?

Tested it locally

Are there any user-facing changes?

Only for developers building pyarrow from source, they have to potentially update their build instructions.

@github-actions
Copy link

github-actions bot commented Aug 1, 2024

⚠️ GitHub issue #43514 has been automatically assigned in GitHub to PR creator.

Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested locally, just a minor question but lgtm

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Aug 1, 2024
Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Aug 1, 2024
@raulcd raulcd merged commit 3193b95 into apache:main Aug 1, 2024
@raulcd raulcd removed the awaiting change review Awaiting change review label Aug 1, 2024
@github-actions github-actions bot added the awaiting merge Awaiting merge label Aug 1, 2024
@jorisvandenbossche jorisvandenbossche deleted the gh-43514-setup-flags branch August 1, 2024 15:25
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 3193b95.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants