I want to generate the exact filename for .whl dm_reverb-0.8.0-cp39-cp39-manylinux2010_x86_64.whl

I want to generate the exact filename dm_reverb-0.8.0-cp39-cp39-manylinux2010_x86_64.whl

this is my setup.py file

setup(
    name='dm_reverb',
    version='0.8.0',
    description='this is a test file',
    author='atif',
    packages=find_packages(),
    install_requires=['wheel','bar'],  # Add any dependencies here if needed
    python_requires='==3.9',  # Explicitly set the Python version
)

init.py file

# dm_reverb_package/dm_reverb/__init__.py

def hello():
   print("Hello from dm_reverb!")

the installation command python3 setup.py bdist_wheel --plat-name=manylinux2010_x86_64 --python-tag cp39-cp39

it is producing filename dm_reverb-0.8.0-cp39-cp39-none-manylinux2010_x86_64.whl

but i want this filename dm_reverb-0.8.0-cp39-cp39-manylinux2010_x86_64.whl

how to remove none

If I understand you correctly, you’re trying to set both the Python tag and the ABI tag with --python-tag cp39-cp39? If so, I think the correct flag for setting the ABI tag with bdist_wheel is --py-limited-api:

$ python3 setup.py bdist_wheel --plat-name=manylinux2010_x86_64 --python-tag cp39 --py-limited-api cp39

Do note by the way that running setup.py scripts directly is deprecated. The modern replacement for that is the build frontend. I’m not sure if build supports manually specifying wheel tags from the CLI, but you can at least update the tags after building using wheel tags.

See also

i am getting error message when running the given command

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: setup.py --help [cmd1 cmd2 …]
or: setup.py --help-commands
or: setup.py cmd --help

error: option --py–limited-api not recognized

Sorry, my typo: it’s --py-limited-api, not --py--limited-api (note the single dash between py and limited).