python-PyQt6-sip/support-python3.6.patch

54 lines
1.3 KiB
Diff

diff --git a/PKG-INFO b/PKG-INFO
index a623a2d..d4ef17b 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -9,7 +9,7 @@ License: SIP
Platform: X11
Platform: macOS
Platform: Windows
-Requires-Python: >=3.7
+Requires-Python: >=3.6
License-File: LICENSE
License-File: LICENSE-GPL2
License-File: LICENSE-GPL3
diff --git a/PyQt6_sip.egg-info/PKG-INFO b/PyQt6_sip.egg-info/PKG-INFO
index b0e3b68..6c98da4 100644
--- a/PyQt6_sip.egg-info/PKG-INFO
+++ b/PyQt6_sip.egg-info/PKG-INFO
@@ -9,7 +9,7 @@ License: SIP
Platform: X11
Platform: macOS
Platform: Windows
-Requires-Python: >=3.7
+Requires-Python: >=3.6
License-File: LICENSE
License-File: LICENSE-GPL2
License-File: LICENSE-GPL3
diff --git a/setup.py b/setup.py
index 13bfdb0..f09e4df 100644
--- a/setup.py
+++ b/setup.py
@@ -40,6 +40,6 @@ setup(
name='PyQt6_sip',
version='13.6.0',
license='SIP',
- python_requires='>=3.7',
+ python_requires='>=3.6',
ext_modules=[module]
)
diff --git a/sip.h b/sip.h
index 89830b8..af9e3fb 100644
--- a/sip.h
+++ b/sip.h
@@ -24,8 +24,8 @@
#include <Python.h>
/* Sanity check on the Python version. */
-#if PY_VERSION_HEX < 0x03070000
-#error "This version of PyQt6.sip requires Python v3.7 or later"
+#if PY_VERSION_HEX < 0x03060000
+#error "This version of PyQt6.sip requires Python v3.6 or later"
#endif