Skip to content

Commit 51bf756

Browse files
committed
Allow None to be passed to egg_basename
1 parent 3736cbc commit 51bf756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools/command/egg_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -776,11 +776,11 @@ def get_pkg_info_revision():
776776
return 0
777777

778778

779-
def _egg_basename(egg_name, egg_version, py_version=PY_MAJOR, platform=None):
779+
def _egg_basename(egg_name, egg_version, py_version=None, platform=None):
780780
"""Compute filename of the output egg. Private API."""
781781
name = _normalization.filename_component(egg_name)
782782
version = _normalization.filename_component(egg_version)
783-
egg = f"{name}-{version}-py{py_version}"
783+
egg = f"{name}-{version}-py{py_version or PY_MAJOR}"
784784
if platform:
785785
egg += f"-{platform}"
786786
return egg

0 commit comments

Comments
 (0)