Okay. The fix for this seems to be to set include_package_data=True.
Using data_files is problematic when building RPMs in that it ultimately copies migrate.cfg to:
/usr/keystone/common/sql/migrate_repo/migrate.cfg
When it should be something like:
/usr/lib/python2.7/site-packages/keystone/common/sql/migrate_repo/migrate.cfg
---
I would add that both Nova and Glance do the same in their setup.py files.
Okay. The fix for this seems to be to set include_ package_ data=True.
Using data_files is problematic when building RPMs in that it ultimately copies migrate.cfg to:
/usr/keystone/ common/ sql/migrate_ repo/migrate. cfg
When it should be something like:
/usr/lib/ python2. 7/site- packages/ keystone/ common/ sql/migrate_ repo/migrate. cfg
---
I would add that both Nova and Glance do the same in their setup.py files.