python: Split up large Python extension into smaller C files.

Reduces build time in this directory from 11s to 3s.
This commit is contained in:
Richard W.M. Jones
2016-09-02 20:51:04 +01:00
parent d95f1d7102
commit 63db9ae81f
11 changed files with 305 additions and 188 deletions

View File

@@ -52,7 +52,17 @@ This package contains the Python bindings for libguestfs.
ext_modules=[
Extension(
'libguestfsmod',
['guestfs-py-byhand.c', 'guestfs-py.c', 'utils.c'],
['actions-0.c',
'actions-1.c',
'actions-2.c',
'actions-3.c',
'actions-4.c',
'actions-5.c',
'actions-6.c',
'handle.c',
'module.c',
'structs.c',
'utils.c'],
include_dirs=['.', '../src'],
libraries=['guestfs'],