summaryrefslogtreecommitdiff
path: root/security/py-python-pkcs11/files/patch-setup.py
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-06-29 19:36:51 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-06-29 19:46:10 +0800
commitc86cfc131ba7bb64764f56cd74dad695d182303c (patch)
tree3bd2238c2c5a942fba0ebfaa7dd724aeecff35ca /security/py-python-pkcs11/files/patch-setup.py
parentsecurity/py-pyhanko: Update to 0.29.1 (diff)
security/py-python-pkcs11: Update to 0.8.1
- Add GitHub to MASTER_SITES - Update WWW - Strip shared library Changes: https://github.com/pyauth/python-pkcs11/releases
Diffstat (limited to '')
-rw-r--r--security/py-python-pkcs11/files/patch-setup.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/security/py-python-pkcs11/files/patch-setup.py b/security/py-python-pkcs11/files/patch-setup.py
new file mode 100644
index 000000000000..83b827201bbe
--- /dev/null
+++ b/security/py-python-pkcs11/files/patch-setup.py
@@ -0,0 +1,31 @@
+Revert: https://github.com/pyauth/python-pkcs11/commit/d45957fd94abfd01b47cbf6a5b96862cf542dfbb
+
+--- setup.py.orig 2025-06-27 14:01:42 UTC
++++ setup.py
+@@ -0,0 +1,26 @@
++# Add cython extension module to build configuration.
++#
++# See also: https://setuptools.pypa.io/en/latest/userguide/ext_modules.html
++
++import platform
++
++from setuptools import Extension, setup
++
++libraries = []
++
++# if compiling using MSVC, we need to link against user32 library
++if platform.system() == "Windows":
++ libraries.append("user32")
++
++
++setup(
++ ext_modules=[
++ Extension(
++ name="pkcs11._pkcs11",
++ sources=[
++ "pkcs11/_pkcs11.pyx",
++ ],
++ libraries=libraries,
++ ),
++ ],
++)