packaging cffi modules for debian

28 views
Skip to first unread message

Tycho Andersen

unread,
Feb 11, 2015, 8:14:26 PM2/11/15
to pytho...@googlegroups.com, Klee Dienes
Hi all,

I'm packaging a module for debian, and it uses cffi's verify() (with the build
trick stolen from [0]). Unfortunately, some piece of the build puts the
generated .so in the top level directory [1] instead of under xcffib/, which
would be ideal. Does anyone know how to get the .so to live one level down?

Thanks!

Tycho

[0]: https://github.com/tych0/xcffib/blob/master/setup.py#L24
[1]:

.
|-- pythonX.Y_2.7
| `-- build
| |-- _cffi__x20ab85b5xc8917695.so
| `-- xcffib
| |-- __init__.py
| |-- __init__.pyc
| |-- bigreq.py
| |-- composite.py
| |-- damage.py
| |-- dpms.py
| |-- dri2.py
| |-- dri3.py
| |-- ffi.py
| |-- ffi.pyc
| |-- ge.py
| |-- glx.py
| |-- present.py
| |-- randr.py
| |-- record.py
| |-- render.py
| |-- res.py
| |-- screensaver.py
| |-- shape.py
| |-- shm.py
| |-- sync.py
| |-- testing.py
| |-- testing.pyc
| |-- xc_misc.py
| |-- xevie.py
| |-- xf86dri.py
| |-- xf86vidmode.py
| |-- xfixes.py
| |-- xinerama.py
| |-- xinput.py
| |-- xproto.py
| |-- xselinux.py
| |-- xtest.py
| |-- xv.py
| `-- xvmc.py
`-- pythonX.Y_3.4
`-- build
|-- _cffi__x7c7c4ebfxc8917695.cpython-34m.so
`-- xcffib
|-- __init__.py
|-- __pycache__
| |-- __init__.cpython-34.pyc
| |-- ffi.cpython-34.pyc
| `-- testing.cpython-34.pyc
|-- bigreq.py
|-- composite.py
|-- damage.py
|-- dpms.py
|-- dri2.py
|-- dri3.py
|-- ffi.py
|-- ge.py
|-- glx.py
|-- present.py
|-- randr.py
|-- record.py
|-- render.py
|-- res.py
|-- screensaver.py
|-- shape.py
|-- shm.py
|-- sync.py
|-- testing.py
|-- xc_misc.py
|-- xevie.py
|-- xf86dri.py
|-- xf86vidmode.py
|-- xfixes.py
|-- xinerama.py
|-- xinput.py
|-- xproto.py
|-- xselinux.py
|-- xtest.py
|-- xv.py
`-- xvmc.py

Reply all
Reply to author
Forward
0 new messages