package_data question

M

Miki

Hello All,

I'm trying to add package_data from outside the package directory.
The current project looks like:
..
|-- __init__.py
|-- a
| `-- src
| `-- py
| `-- __init__.py
|-- b
| `-- src
| `-- py
| `-- __init__.py
|-- c
| `-- src
| `-- py
| `-- __init__.py
|-- dlls
| `-- c.dll
`-- setup.py

I'd like to get c.dll inside the p.c directory, so I wrotefrom
setuptools import setup
setup(
name='p',
package_dir={
'p' : '.',
'p.a' : 'a/src/py',
'p.b' : 'b/src/py',
'p.c' : 'c/src/py',
},
packages=['p', 'p.a', 'p.b', 'p.c'],
include_package_data=True,
package_data = {
'p.c' : [ 'dlls/c.dll' ]
}
)

However c.dll is not copied.
build/lib.linux-x86_64-2.6
`-- p
|-- __init__.py
|-- a
| `-- __init__.py
|-- b
| `-- __init__.py
`-- c
`-- __init__.py


Any idea how to fix this?
(Changing the directory structure is not possible - not my project).

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top