Skip to content

Initial python 3.9 client wheel build support - #9389

Merged
sijie merged 4 commits into
apache:masterfrom
vkvm:vkvm_pulsar_client_python39
Feb 12, 2021
Merged

Initial python 3.9 client wheel build support#9389
sijie merged 4 commits into
apache:masterfrom
vkvm:vkvm_pulsar_client_python39

Conversation

@vkvm

@vkvm vkvm commented Feb 1, 2021

Copy link
Copy Markdown
Contributor
  • 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.

vkvm added 3 commits January 31, 2021 20:57
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

zymap commented Feb 1, 2021

Copy link
Copy Markdown
Member

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

@eolivelli

Copy link
Copy Markdown
Contributor

/pulsar-bot run-failure-tests

@jiazhai

jiazhai commented Feb 1, 2021

Copy link
Copy Markdown
Member

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

@vkvm

vkvm commented Feb 1, 2021

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
Contributor

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

@BewareMyPower

Copy link
Copy Markdown
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
Copy Markdown
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.

8 participants