Closed
Description
Currently, we have a rather complicated method of finding data files. The current method we use to distribute typeshed is ripe for issues with finding the files.
I think we should stop playing whack-a-mole with issues and ship typeshed differently. Here are two ideas:
- Ship typeshed as a subpackage of mypy, while still keeping it a module. I originally proposed this in Move to using package_data to install typeshed and xml files. #4143 but was hung up on the symlinks in typeshed (which no longer exist). This would involve:
- moving the submodule into the mypy package.
- updating setup.py to use package_data
- adding these files to MANIFEST.in to be picked up in sdists
- Release typeshed as its own package and pin to a particular version. This was attempted in Add setup.py typeshed#2025 but it was abandoned.
I have no particular preference for one over the other, but I think both are better than the current method.