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

Initial python 3.9 client wheel build support #9389

Merged
merged 4 commits into from
Feb 12, 2021

Conversation

vkvm
Copy link
Contributor

@vkvm vkvm commented Feb 1, 2021

  • Fix build-client-lib-within-docker.sh
  • Fix build-client-lib.sh and add py39
  • Add py39 to remaining docker build scripts

Motivation

A python 3.9 client wheel is missing. This is an initial attempt to add it. I'm mainly concerned about Fedora + RHEL7.

Modifications

Mostly just fixing up / modifying build scripts used with docker.

I don't know enough about the build system. I made sufficient changes for me to
be able to do this (roughly):

$ cd pulsar-client-cpp/docker
$ ./create-images.sh
$ ./build-client-lib.sh
$ export BUILD_IMAGE_NAME=pulsar-build
$ ./build-wheels.sh 3.9 cp39-cp39

When I built the wheel on my laptop, I commented out all other versions or
specified just 3.9.

TODO: Documentation

As a new user, it was confusing figuring out how exactly to build this. I can take a quick stab at doc updates after this is merged.

In a clean environment, this script can incorrectly fail in two places:

* Add `-r` to xargs to avoid running command if find doesn't return
anything
* Add `-f` to rm to silent to avoid failure if nothing to rm
* Wrong var name `IMAGE` instead of `IMAGE_NAME`
* Added python 3.9 version
* Added py39 versions to remaining build scripts
* Also for cmake, updated `pulsar-client-cpp/python/CMakeLists.txt`
@vkvm vkvm changed the title Initial python 3.9 client build support Initial python 3.9 client wheel build support Feb 1, 2021
@zymap
Copy link
Member

zymap commented Feb 1, 2021

Hi, @BewareMyPower could you please take a look at this?

@eolivelli
Copy link
Contributor

/pulsar-bot run-failure-tests

@jiazhai
Copy link
Member

jiazhai commented Feb 1, 2021

@vkvm thanks for the work. would you please help open a new issue to track the later change for the document?

@vkvm
Copy link
Contributor Author

vkvm commented Feb 1, 2021

@vkvm thanks for the work. would you please help open a new issue to track the later change for the document?

Done. See Issue #9410

@sijie sijie added the doc-required Your PR changes impact docs and you will update later. label Feb 2, 2021
@sijie sijie added this to the 2.8.0 milestone Feb 2, 2021
Added python 3.9 support to `pulsar-client-cpp/docker/push-images.sh`

Presumably this is used by someone with push access to the
`apachepulsar` docker registry, so it's not something I've actually
tested.
@momo-jun
Copy link
Contributor

Hi @vkvm, is there any chance that you could revisit this PR for doc updates?

@BewareMyPower
Copy link
Contributor

@momo-jun I think we don't need the doc updates now. These wheels should only be built by GitHub Actions now.

@momo-jun
Copy link
Contributor

@BewareMyPower Thanks for your information. Good to know that! I will refresh the doc status label.

@momo-jun momo-jun added doc-not-needed Your PR changes do not impact docs and removed doc-required Your PR changes impact docs and you will update later. labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants