/usr/lib/python3/dist-packages/gphoto2cffi/backend_build.py is in python3-gphoto2cffi 0.3~a1-1.1~deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import os
from cffi import FFI
with open(os.path.join(os.path.dirname(__file__), 'gphoto2.cdef')) as fp:
CDEF = fp.read()
SOURCE = """
#include "gphoto2/gphoto2-version.h"
#include "gphoto2/gphoto2-context.h"
#include "gphoto2/gphoto2-camera.h"
#include <time.h>
"""
ffi = FFI()
ffi.set_source("_backend", SOURCE, libraries=['gphoto2'])
ffi.cdef(CDEF)
if __name__ == "__main__":
ffi.compile()
|