apache / pulsar-client-python

Apache Pulsar Python client library
https://pulsar.apache.org/
Apache License 2.0
49 stars 38 forks source link

Fix missing dependency of setuptools #183

Closed RobertIndie closed 6 months ago

RobertIndie commented 6 months ago

Motivation

There are some errors blocking the CI: https://github.com/apache/pulsar-client-python/actions/runs/7321925272/job/19942911045?pr=181 https://github.com/apache/pulsar-client-python/actions/runs/7320564743/job/19942264377

The python 3.12 has removed the setuptools for the default dependency by this PR: https://github.com/python/cpython/issues/95299

gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.

Verification

Verification CI: https://github.com/apache/pulsar-client-python/actions/runs/7325997832

The result of CI shows that this fix could build the release wheel file successfully.

BewareMyPower commented 6 months ago

My PR https://github.com/apache/pulsar-client-python/pull/181 will include this change since I switched to Python 3.12 in PR validation CI.