package_data question
Miki
miki.tebeka at gmail.com
Fri Dec 4 20:19:26 EST 2009
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,
--
Miki
More information about the Python-list
mailing list