Skip to content

Fix missing dependency of setuptools #183

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

Merged
merged 2 commits into from
Dec 26, 2023
Merged

Conversation

RobertIndie
Copy link
Member

@RobertIndie RobertIndie commented Dec 26, 2023

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: python/cpython#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.

@RobertIndie RobertIndie added this to the 3.4.0 milestone Dec 26, 2023
@RobertIndie RobertIndie self-assigned this Dec 26, 2023
@RobertIndie RobertIndie marked this pull request as ready for review December 26, 2023 02:56
@BewareMyPower
Copy link
Contributor

My PR #181 will include this change since I switched to Python 3.12 in PR validation CI.

@BewareMyPower BewareMyPower merged commit eafc672 into apache:main Dec 26, 2023
RobertIndie added a commit that referenced this pull request Dec 26, 2023
## 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: python/cpython#95299

> [gh-95299](python/cpython#95299): Do not pre-install setuptools in virtual environments created with [venv](https://docs.python.org/3/library/venv.html#module-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](https://docs.python.org/3/library/venv.html#venv-explanation) 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.

(cherry picked from commit eafc672)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants