Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 68bca69

Browse files
committed
build: fix for darwin
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
1 parent 6f9ce6e commit 68bca69

File tree

4 files changed

+70
-72
lines changed

4 files changed

+70
-72
lines changed

build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
Extension(
88
"kadmin",
99
libraries=["krb5", "kadm5clnt", "kdb5"],
10-
include_dirs=["/usr/include/", "/usr/include/et/"],
10+
library_dirs=["/opt/homebrew/opt/krb5/lib"],
11+
include_dirs=["/usr/include/", "/usr/include/et/", "/opt/homebrew/opt/krb5/include"],
1112
sources=[
1213
"src/kadmin.c",
1314
"src/PyKAdminErrors.c",
@@ -19,11 +20,13 @@
1920
"src/PyKAdminXDR.c",
2021
"src/getdate.c",
2122
],
23+
extra_compile_args=["-stc=c18"],
2224
),
2325
Extension(
2426
"kadmin_local",
2527
libraries=["krb5", "kadm5srv", "kdb5"],
26-
include_dirs=["/usr/include/", "/usr/include/et/"],
28+
library_dirs=["/opt/homebrew/opt/krb5/lib"],
29+
include_dirs=["/usr/include/", "/usr/include/et/", "/opt/homebrew/opt/krb5/include"],
2730
sources=[
2831
"src/kadmin.c",
2932
"src/PyKAdminErrors.c",
@@ -35,6 +38,7 @@
3538
"src/PyKAdminXDR.c",
3639
"src/getdate.c",
3740
],
41+
extra_compile_args=["-stc=c18"],
3842
define_macros=[("KADMIN_LOCAL", "")],
3943
),
4044
]

poetry.lock

Lines changed: 59 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ version = "0.2.0"
44
description = "Python module for kerberos admin (kadm5)"
55
license = "MIT"
66
authors = ["Russell Jancewicz <[email protected]>"]
7-
repository="https://gitlab.cri.epita.fr/cri/packages/python-kadmin-epita"
7+
repository = "https://gitlab.cri.epita.fr/cri/packages/python-kadmin-epita"
88
readme = "README.md"
9-
classifiers=[
9+
classifiers = [
1010
"Development Status :: 4 - Beta",
1111
"Environment :: Console",
1212
"Intended Audience :: System Administrators",
@@ -21,18 +21,15 @@ classifiers=[
2121
]
2222

2323
packages = []
24-
include = [
25-
{ path = "src" }
26-
]
24+
include = [{ path = "src" }]
2725

2826
[tool.poetry.dependencies]
2927
python = ">=3.8"
3028

3129
[tool.poetry.dev-dependencies]
3230
black = "*"
3331
isort = "*"
34-
# See https://github.com/pythongssapi/k5test/pull/27
35-
k5test = { git = "https://github.com/rissson/k5test.git", branch = "fix-start-kadmin" }
32+
k5test = "*"
3633
pytest = "*"
3734

3835
[tool.poetry.build]

src/PyKAdminPolicyObject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ PyTypeObject PyKAdminPolicyObject_Type = {
120120
sizeof(PyKAdminPolicyObject), /*tp_basicsize*/
121121
0, /*tp_itemsize*/
122122
(destructor)PyKAdminPolicyObject_dealloc, /*tp_dealloc*/
123-
KAdminPolicyObject_print, /*tp_print*/
123+
0, /*tp_print*/
124124
0, /*tp_getattr*/
125125
0, /*tp_setattr*/
126126
0, /*tp_compare*/

0 commit comments

Comments
 (0)