How do I use 'data_files' in setup.py?
I'm trying to add icons to my app's .deb. I've done this by putting them in the data/media directory. I want them to end up in /usr/share/
Question #138208 seems to suggest that I should edit setup.py to specify paths with a 'data_files' argument to setup(). When I do that, I get the following failure when I run 'quickly package':
<pre>
...
Ubuntu packaging created in debian/
.......
Command returned some WARNINGS:
-------
** (setup.py:18164): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (setup.py:18164): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (setup.py:18164): WARNING **: Trying to register gtype 'WnckWindowMove
WARNING: the following files are not recognized by DistUtilsExtra.
doing/
-------
An error has occurred during package building
ERROR: package command failed
Aborting
</pre>
My setup.py now looks like:
---
DistUtilsExtra.
name='doing',
version='0.1',
license=
author='Erigami Scholey-Fuller',
<email address hidden>',
description
long_
url='https:/
cmdclass=
data_files=[
]
)
---
Why does adding a 'data_files' argument to setup() cause failures in that config file? What's the appropriate way to add extra paths to the .deb?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Quickly Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Erigami for more information if necessary.