Python setuptools setup.cfg data_files

Setuptools 40.6 added section [options.data_files] to setup.cfg. Having setuptools < 40.6 results in this error upon trying to install a Python package:

distutils.errors.DistutilsOptionError: Unsupported distribution option section: [options.data_files]

Fix: upgrade setuptools via:

conda install setuptools

or

pip install --upgrade setuptools

Where are data_files placed

A setup.cfg using data_files would include:

[options]
zip_safe: false

[options.data_files]
myprogram/data =
  myprogram/data/stuff.txt
  myprogram/data/logo.png

This places the files for python setup.py install under:

<python-install>/site-packages/myprogram.egg/myprogram/data