File pkg-no-external-modules.patch of Package pkg

Skip compiling external Python modules, these go into seperate packages.

diff -r 3c3fae42f23d src/setup.py
--- a/src/setup.py	Fri Sep 24 10:34:24 2010 +1200
+++ b/src/setup.py	Sat Oct 02 00:14:30 2010 +0200
@@ -490,63 +490,6 @@
                                     os.stat(dst_path).st_mode
                                     | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
 
-                prep_sw(CP, CPARC, CPDIR, CPURL, CPHASH)
-                install_sw(CP, CPDIR, CPIDIR)
-		if osname == "sunos" and platform.uname()[2] == "5.11":
-                        prep_sw(LDTP, LDTPARC, LDTPDIR, LDTPURL,
-                            LDTPHASH)
-                        saveenv = os.environ.copy()
-                        os.environ["LDFLAGS"] = os.environ.get("LDFLAGS", "") + \
-                            " -lsocket -lnsl"
-                        install_ldtp(LDTP, LDTPDIR, LDTPIDIR)
-                        os.environ = saveenv
-
-		if "BUILD_PYOPENSSL" in os.environ and \
-                    os.environ["BUILD_PYOPENSSL"] != "":
-                        #
-                        # Include /usr/sfw/lib in the build environment
-                        # to ensure that this builds and runs on older
-                        # nevada builds, before openssl moved out of /usr/sfw.
-                        #
-                        saveenv = os.environ.copy()
-                        if osname == "sunos":
-                                os.environ["CFLAGS"] = "-I/usr/sfw/include " + \
-                                    os.environ.get("CFLAGS", "")
-                                os.environ["LDFLAGS"] = \
-                                    "-L/usr/sfw/lib -R/usr/sfw/lib " + \
-                                    os.environ.get("LDFLAGS", "")
-                        prep_sw(PO, POARC, PODIR, POURL, POHASH)
-                        install_sw(PO, PODIR, POIDIR)
-                        os.environ = saveenv
-                prep_sw(M2C, M2CARC, M2CDIR, M2CURL, M2CHASH)
-                install_sw(M2C, M2CDIR, M2CIDIR)
-                prep_sw(MAKO, MAKOARC, MAKODIR, MAKOURL, MAKOHASH)
-                install_sw(MAKO, MAKODIR, MAKOIDIR)
-                prep_sw(PLY, PLYARC, PLYDIR, PLYURL, PLYHASH)
-                install_sw(PLY, PLYDIR, PLYIDIR)
-                prep_sw(PC, PCARC, PCDIR, PCURL, PCHASH)
-                install_sw(PC, PCDIR, PCIDIR, extra_env=PCENVIRON)
-                prep_sw(COV, COVARC, COVDIR, COVURL, COVHASH)
-                install_sw(COV, COVDIR, COVIDIR)
-                prep_sw(PBJ, PBJARC, PBJDIR, PBJURL, PBJHASH)
-                install_sw(PBJ, PBJDIR, PBJIDIR)
-
-                # Remove some bits that we're not going to package, but be sure
-                # not to complain if we try to remove them twice.
-                def onerror(func, path, exc_info):
-                        if exc_info[1].errno != errno.ENOENT:
-                                raise
-
-                for dir in ("cherrypy/scaffold", "cherrypy/test",
-                    "cherrypy/tutorial"):
-                        shutil.rmtree(os.path.join(root_dir, py_install_dir, dir),
-                            onerror=onerror)
-                try:
-                        os.remove(os.path.join(root_dir, "usr/bin/mako-render"))
-                except EnvironmentError, e:
-                        if e.errno != errno.ENOENT:
-                                raise
-
 def hash_sw(swname, swarc, swhash):
         if swhash == None:
                 return True
openSUSE Build Service is sponsored by