Use the public version of sip module
authorDmitry Shachnev <mitya57@debian.org>
Tue, 3 Jul 2018 06:46:42 +0000 (09:46 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 6 Jul 2018 10:09:02 +0000 (11:09 +0100)
Per https://www.debian.org/doc/debian-policy/#convenience-copies-of-code.

Gbp-Pq: Name public_sip.diff

configure.py

index 7c481360e9b8d05511dc6ebbdeed9787956f29b1..ca23f9372a612635f274f686af25136d72a0d0da 100644 (file)
@@ -642,15 +642,6 @@ class TargetConfiguration:
                     "Unable to import enum.  Please install the enum34 "
                     "package from PyPI.")
 
-        # Check there is a private copy of the sip module already installed.
-        try:
-            from PyQt5 import sip
-        except ImportError:
-            error(
-                    "Unable to import PyQt5.sip.  Make sure you have "
-                    "configured SIP to create a private copy of the sip "
-                    "module.")
-
         # Get the details of the Python interpreter library.
         py_major = self.py_version >> 16
         py_minor = (self.py_version >> 8) & 0x0ff
@@ -2438,7 +2429,7 @@ def get_sip_flags(target_config):
     the target configuration.
     """
 
-    sip_flags = ['-n', 'PyQt5.sip']
+    sip_flags = ['-n', 'sip']
 
     # If we don't check for signed interpreters, we exclude the 'VendorID'
     # feature
@@ -2914,14 +2905,6 @@ def check_sip(target_config):
     target_config is the target configuration.
     """
 
-    # Check there is a private copy of the sip module already installed.
-    try:
-        from PyQt5 import sip
-    except ImportError:
-        error(
-                "Unable to import PyQt5.sip.  Make sure you have configured "
-                "SIP to create a private copy of the sip module.")
-
     if target_config.sip is None:
         error(
                 "Make sure you have a working sip on your PATH or use the "