Skip to content

add abseil to pyarrow host section - #815

Merged
kkraus14 merged 1 commit into
conda-forge:mainfrom
kkraus14:pyarrow_abseil_hack
Aug 15, 2022
Merged

kkraus14 merged 1 commit into
conda-forge:mainfrom
kkraus14:pyarrow_abseil_hack

Conversation

@kkraus14

@kkraus14 kkraus14 commented Aug 8, 2022

Copy link
Copy Markdown
Contributor

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

Fixes #814. Adds abseil to the pyarrow host section to get it to properly parametrize on arrow-cpp build variants to prevent issues where we can't use certain abseil versions because pyarrow only pins to other version arrow-cpp builds.

@conda-forge-linter

Copy link
Copy Markdown
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@kkraus14

kkraus14 commented Aug 8, 2022

Copy link
Copy Markdown
Contributor Author

@conda-forge-admin please rerender

@kkraus14

kkraus14 commented Aug 8, 2022

Copy link
Copy Markdown
Contributor Author

Once we confirm this fixes the problem I'll backport it to 8.x, 7.x, and 6.x.

@github-actions

github-actions Bot commented Aug 8, 2022

Copy link
Copy Markdown
Contributor

Hi! This is the friendly automated conda-forge-webservice.

I tried to rerender for you, but it looks like there was nothing to do.

This message was generated by GitHub actions workflow run https://github.com/conda-forge/arrow-cpp-feedstock/actions/runs/2819231251.

@kkraus14

kkraus14 commented Aug 8, 2022

Copy link
Copy Markdown
Contributor Author

@kkraus14

kkraus14 commented Aug 9, 2022

Copy link
Copy Markdown
Contributor Author

Only builds left are the emulated builds that tend to time out, so this should be ready for review

@cpcloud cpcloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll admit I am not entirely sure what the implications of this are, other than that the host closure is sizeof(abseil-cpp) bigger.

Since it unblocks you, I'll approve.

@pitrou

pitrou commented Aug 15, 2022

Copy link
Copy Markdown
Member

What is a "host" dependency as opposed to "build" and "run"?

@kkraus14

Copy link
Copy Markdown
Contributor Author

@kkraus14
kkraus14 merged commit 4eb7230 into conda-forge:main Aug 15, 2022
@pitrou

pitrou commented Aug 16, 2022

Copy link
Copy Markdown
Member

See here: https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#build

Ironically this section manages to be both quite verbose and still cryptic :-(

Also, why is Abseil listed there? Abseil would either be a build-time (compile) dependency or run-time (dynamic library) dependency, but I don't understand why it would be a "host" dependency.

@kkraus14

Copy link
Copy Markdown
Contributor Author

Ironically this section manages to be both quite verbose and still cryptic :-(

The way I think about it is:

  • build section is for things that need to be on the native platform like executables and cdt packages. Typically this means things like the compilers, cmake, make/ninja, etc. end up in this section. Say we're cross compiling for aarch64 on an x64 machine, these would be x64 packages.
  • host section is for things that are needed at build time for the target platform. Typically this means shared libraries, headers, python packages needed for building extensions, etc. Say we're cross compiling for aarch64 on an x64 machine, these would be aarch64 packages.
  • run section is for things needed during runtime in using the package.

Also, why is Abseil listed there? Abseil would either be a build-time (compile) dependency or run-time (dynamic library) dependency, but I don't understand why it would be a "host" dependency.

This is a workaround for a bug in conda-build. Conda-build generates a hash for building a package based on the package versions in the recipe. For some reason, it doesn't include the arrow-cpp version when generating that hash which is exactly pinned in the pyarrow recipe to a specific build. Unfortunately, without the arrow-cpp version being included, it leads to two pyarrow packages having the same hash that require different arrow-cpp packages, which are differentiated by their abseil and grpc-cpp versions (see here: #815 (comment)). To workaround this bug, we add abseil-cpp to the pyarrow host section to get it to be factored into the pyarrow pkg hash which allows pyarrow pkgs to be produced for the differentiated arrow-cpp pkgs.

@jakirkham

Copy link
Copy Markdown
Member

In terms of the docs being confusing, would suggest raising an issue on the conda-build repo with a bit more context about what is confusing and why. If you happen to have suggestions on how to improve it (after Keith explained these sections above), that would also be helpful information to capture 🙂

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PyArrow builds aren't correctly pinning to the locally produced arrow-cpp build

5 participants