Skip to content

wheel._bdist_wheel.safer_name question / issue #717

Closed

Description

@BMaxV

Hi,

I hope this is the correct place to ask this.

Because I like the simplicity of make, I made a makefile making script that reads the toml, crawls the file tree, ignores some ignore stuff and produces:

clean:
	rm -rf ./dist

build: {wheelname}

{wheelname}: {filecollection}
	python3 -m build --no-isolation -C--quiet=

install: build
	pip3 install {wheelname} --force

with wheelname = f"./dist/{modulename}-{version}-py3-none-any.whl"

The crawling is fine, the version is not a problem, but how to safely and correctly produce modulename is not obvious. So I thought I'd reuse the actual function that the build step uses. It's not clear to me which function that is.

I thought it was wheel._bdist_wheel.safer_name but it turns out that the build step produces a name.lower() string and safer_name doesn't, so I'm not sure where that is coming from.

Activity

  1. agronholm commented on Nov 3, 2026

    @agronholm
    Contributor

    None of these invoke wheel._bdist_wheel. The bdist_wheel command canonically lives in setuptools. The only reason there is still a bdist_wheel command in this project is backwards compatibility.

  2. locked and limited conversation to collaborators on Nov 3, 2026
  3. converted this issue into a discussion #718 on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions