From 47af3dfffc7c32a097adc449e8ee1a0ed920c404 Mon Sep 17 00:00:00 2001
From: Einar Largenius <einarl@nsc.liu.se>
Date: Fri, 22 Sep 2023 15:24:34 +0200
Subject: [PATCH] Fix unable to build

Multiple setup declarations is undefined behavior. With earlier versions of
pip it didn't crash, but now it does.

Remove one setup declaration as a workaround.
---
 setup.py | 42 ------------------------------------------
 1 file changed, 42 deletions(-)

diff --git a/setup.py b/setup.py
index 5277e0d..07b6483 100644
--- a/setup.py
+++ b/setup.py
@@ -58,45 +58,3 @@ setup(name='python-kadmin',
           ]
       )
 
-setup(name='python-kadmin-local',
-      version='0.1.1',
-      description='Python module for kerberos admin (kadm5) via root local interface',
-      url='https://github.com/russjancewicz/python-kadmin',
-      download_url='https://github.com/russjancewicz/python-kadmin/tarball/v0.1.1',
-      author='Russell Jancewicz',
-      author_email='russell.jancewicz@gmail.com',
-      license='MIT',
-      ext_modules=[
-          Extension(
-              "kadmin_local",
-              libraries=["krb5", "kadm5srv", "kdb5"],
-              include_dirs=["/usr/include/", "/usr/include/et/"],
-              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"
-                  ],
-              define_macros=[('KADMIN_LOCAL', '')]
-              )
-          ],
-      classifiers=[
-          "Development Status :: 4 - Beta",
-          "Environment :: Console",
-          "Intended Audience :: System Administrators",
-          "Intended Audience :: Developers",
-          "Operating System :: POSIX",
-          "Programming Language :: C",
-          "Programming Language :: Python",
-          "Programming Language :: YACC",
-          "License :: OSI Approved :: MIT License",
-          "Topic :: Software Development :: Libraries :: Python Modules",
-          "Topic :: System :: Systems Administration :: Authentication/Directory",
-          ]
-      )
-
-- 
GitLab