'Image not getting included in bdist

Project structure

-> mypackage
--> mypackage
---> __init__.py
---> __main__.py
---> icon.ico
--> setup.cfg
--> MANIFEST.in

setup.cfg

include_package_data = True
packages = mypackage
package_dir =
    = .

MANIFEST.in

include mypackage/icon.ico

I see the .ico in my sdist wheel under mypackage/mypackage folder, but not in the bdist wheel. I think I need to use setup.py method for packaging, but I prefer avoiding it. I tried this answer, although I am not using pkgutil for locating/loading the image. I have also tried clearing mypackage.egg-info folder and rebuilding.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source