Skip to content

build: remove bdist_wheel universal flag to build py3-only wheels - #657

Merged
jparise merged 1 commit into
pinterest:masterfrom
reginaldalfret:fix/remove-bdist-wheel-universal
Oct 8, 2026
Merged

jparise merged 1 commit into
pinterest:masterfrom
reginaldalfret:fix/remove-bdist-wheel-universal

Conversation

@reginaldalfret

Copy link
Copy Markdown
Contributor

Summary

Removes [bdist_wheel] universal = true from setup.cfg.

Context & Motivation

Fixes #635.

pymemcache 4.0.0 dropped support for Python 2 and requires python_requires = >= 3.9 (Programming Language :: Python :: 3 :: Only). However, keeping universal = true in setup.cfg caused built wheels to be tagged as py2.py3-none-any.whl, incorrectly signaling Python 2 support on PyPI and triggering setuptools deprecation warnings.

Removing this setting ensures wheels are built with the correct py3-none-any.whl tag.

Verification

  • Built wheel prior to change: produced pymemcache-4.0.0-py2.py3-none-any.whl with setuptools WARNING bdist_wheel.universal is deprecated.
  • Built wheel after change: produced pymemcache-4.0.0-py3-none-any.whl without deprecation warnings.

Signed-off-by: reginaldalfret <reginaldalfret@gmail.com>
@reginaldalfret
reginaldalfret requested review from a team and jparise as code owners October 8, 2026 12:59
@jparise
jparise merged commit 75df78d into pinterest:master Oct 8, 2026
5 of 9 checks passed
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.

4.0.0 PyPi wheel still claims to support Python 2.7

2 participants