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

fix: windows *.lib interface in python_headers #976

Merged

Conversation

lummax
Copy link
Contributor

@lummax lummax commented Jan 5, 2023

A user might use python_headers to build an extension module that does not itself pull in the python shared library. On Windows, this needs to expose the *.lib interface file to compile correctly.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Currently a user on Windows can not compile a native extension module and build against python_headers.

Issue Number: N/A

What is the new behavior?

It is fixed.

Does this PR introduce a breaking change?

  • Yes
  • No

@lummax lummax requested a review from f0rmiga as a code owner January 5, 2023 16:48
@google-cla
Copy link

google-cla bot commented Jan 5, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@lummax lummax force-pushed the add-interface-file-in-python-headers branch from 4552278 to 8dd7edd Compare January 6, 2023 08:54
Copy link
Collaborator

@f0rmiga f0rmiga left a comment

Choose a reason for hiding this comment

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

…ibrary

A user might use `python_headers` to build an extension module that does
not itself pull in the python shared library. On Windows, this needs to
expose the `*.lib` interface file to compile correctly.
@lummax lummax force-pushed the add-interface-file-in-python-headers branch from 8dd7edd to a7a15ce Compare January 24, 2023 10:31
@lummax
Copy link
Contributor Author

lummax commented Jan 24, 2023

I am not sure how that failure relates to this PR. But I have rebased on main. Let's see what happens.

bazel run //:vendor_requirements does nothing with bazel 6.0.0.

@f0rmiga f0rmiga changed the title fix: add the windows *.lib interface file to the python_headers l… fix: windows *.lib interface in python_headers Jan 24, 2023
@f0rmiga f0rmiga merged commit ba45af0 into bazelbuild:main Jan 24, 2023
@lummax lummax deleted the add-interface-file-in-python-headers branch January 24, 2023 16:55
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.

2 participants