How do I distribute fonts with my python package?
问题 I have created a package called clearplot that wraps around matplotlib. I have also created a nice font that I want to distribute with my package. I consulted this section of the Python Packaging User guide, and determined that I should use the data_files keyword. I chose data_files instead of package_data since I need to install the font in a matplotlib directory that is outside of my package. Here is my first, flawed, attempt at a setup.py file: from distutils.core import setup import os,