This repository was archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.py
More file actions
50 lines (46 loc) · 1.47 KB
/
build.py
File metadata and controls
50 lines (46 loc) · 1.47 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import Extension
extensions = [
Extension(
"kadmin",
libraries=["krb5", "kadm5clnt", "kdb5"],
library_dirs=["/opt/homebrew/opt/krb5/lib"],
include_dirs=["/usr/include/", "/usr/include/et/", "/opt/homebrew/opt/krb5/include"],
sources=[
"src/kadmin.c",
"src/PyKAdminErrors.c",
"src/PyKAdminObject.c",
"src/PyKAdminIterator.c",
"src/PyKAdminPrincipalObject.c",
"src/PyKAdminPolicyObject.c",
"src/PyKAdminCommon.c",
"src/PyKAdminXDR.c",
"src/getdate.c",
],
extra_compile_args=["-std=c18"],
),
Extension(
"kadmin_local",
libraries=["krb5", "kadm5srv", "kdb5"],
library_dirs=["/opt/homebrew/opt/krb5/lib"],
include_dirs=["/usr/include/", "/usr/include/et/", "/opt/homebrew/opt/krb5/include"],
sources=[
"src/kadmin.c",
"src/PyKAdminErrors.c",
"src/PyKAdminObject.c",
"src/PyKAdminIterator.c",
"src/PyKAdminPrincipalObject.c",
"src/PyKAdminPolicyObject.c",
"src/PyKAdminCommon.c",
"src/PyKAdminXDR.c",
"src/getdate.c",
],
extra_compile_args=["-std=c18"],
define_macros=[("KADMIN_LOCAL", "")],
),
]
def build(setup_kwargs):
setup_kwargs.update({
"ext_modules": extensions,
})