-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (31 loc) · 888 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from setuptools import setup, Extension
truenas_pylibzfs = Extension(
name='truenas_pylibzfs',
sources=[
'src/error.c',
'src/py_zfs.c',
'src/py_zfs_dataset.c',
'src/py_zfs_enum.c',
'src/py_zfs_iter.c',
'src/py_zfs_object.c',
'src/py_zfs_pool.c',
'src/py_zfs_prop.c',
'src/py_zfs_resource.c',
'src/py_zfs_state.c',
'src/py_zfs_vdev.c',
'src/truenas_pylibzfs.c',
'src/utils.c',
],
libraries = [
'zfs',
'zfs_core',
'nvpair',
'uutil'
],
include_dirs = ['/usr/include/libzfs', '/usr/include/libspl'],
library_dirs = ['/usr/lib/x86_64-linux-gnu/'],
)
setup(name='truenas_pylibzfs',
version='0.1',
description='truenas_pylibzfs provides python bindings for libzfs for TrueNAS',
ext_modules=[truenas_pylibzfs])