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


pip install --upgrade setuptools

Where are data_files placed

A setup.cfg using data_files would include:

zip_safe: false

myprogram/data =

This places the files for python install under: