rl_addons: minor change to setup scripts
authorrgbecker
Fri, 02 Jun 2006 11:19:15 +0000
changeset 2641 8b8c4ac36198
parent 2640 3b9f819abb41
child 2642 f9da37477baa
rl_addons: minor change to setup scripts
rl_addons/pyRXP/setup.py
rl_addons/renderPM/setup.py
rl_addons/rl_accel/setup.py
--- a/rl_addons/pyRXP/setup.py	Fri May 26 12:29:08 2006 +0000
+++ b/rl_addons/pyRXP/setup.py	Fri Jun 02 11:19:15 2006 +0000
@@ -25,15 +25,8 @@
 		LIBS=['nsl', 'socket', 'dl']
 	elif sys.platform=="aix4":
 		LIBS=['nsl_r', 'dl']
-	elif sys.platform in ("freebsd4", "freebsd5","freebsd6", "darwin", "mac", "linux2", "linux-i386"):
+	else:
 		LIBS=[]
-	else:
-		msg = "Don't know about system %s" % sys.platform
-		if int(os.environ.get('LIBERROR',1)): 
-			raiseConfigError(msg+'\nset environment LIBERROR=0 to try no extra libs')
-		else:
-			print msg
-			LIBS=[]
 
 	rxpFiles = ('xmlparser.c', 'url.c', 'charset.c', 'string16.c', 'ctype16.c', 
                 'dtd.c', 'input.c', 'stdio16.c', 'system.c', 'hash.c', 
--- a/rl_addons/renderPM/setup.py	Fri May 26 12:29:08 2006 +0000
+++ b/rl_addons/renderPM/setup.py	Fri Jun 02 11:19:15 2006 +0000
@@ -47,13 +47,8 @@
 	LIBART_DIR=pJoin(DEVEL_DIR,'libart_lgpl')
 	LIBART_SRCS=glob(pJoin(LIBART_DIR, 'art_*.c'))
 	GT1_DIR=pJoin(DEVEL_DIR,'gt1')
-	GLIB_DIR=pJoin(DEVEL_DIR,'glib')
 	platform = sys.platform
-	if platform in ['darwin', 'win32', 'sunos5', 'freebsd4', 'freebsd6', 'mac', 'linux2','linux-i386','aix4']:
-		LIBS=[]
-	else:
-		raise ValueError, "Don't know about platform", platform
-
+	LIBS=[]
 
 	if os.path.isdir('/usr/local/include/freetype2'):
 		FT_LIB = ['freetype']
@@ -91,7 +86,7 @@
 						('_renderPM_gt1',
 						{
 						'sources':	pfxJoin(GT1_DIR,'gt1-dict.c','gt1-namecontext.c','gt1-parset1.c','gt1-region.c','parseAFM.c'),
-						'include_dirs': [DEVEL_DIR,GT1_DIR,GLIB_DIR,],
+						'include_dirs': [DEVEL_DIR,GT1_DIR,],
 						'macros': MACROS,
 						#'extra_compile_args':['/Z7'],
 						}
--- a/rl_addons/rl_accel/setup.py	Fri May 26 12:29:08 2006 +0000
+++ b/rl_addons/rl_accel/setup.py	Fri Jun 02 11:19:15 2006 +0000
@@ -8,20 +8,8 @@
     VERSION = re.search(r'^#\s*define\s+VERSION\s*"([^"]+)"',open('_rl_accel.c','r').read(),re.MULTILINE)
     VERSION = VERSION and VERSION.group(1) or 'unknown'
 
-    if sys.platform in ['linux2', 'win32', 'sunos5', 'freebsd4', 'freebsd5', 'freebsd6', 'aix4', 'mac', 'darwin']:
-        LIBS=[]
-    else:
-        raise ValueError, "Don't know about platform:"+sys.platform
+    LIBS = []
     EXTRA_MODULES = []
-    if os.path.isfile('rotormodule.c'):
-        EXTRA_MODULES.append(
-            Extension(  'rotor',
-                    ['rotormodule.c'],
-                    include_dirs=[],
-                    define_macros=[],
-                    library_dirs=[],
-                    libraries=LIBS, # libraries to link against
-                    ))
 
     setup(  name = "_rl_accel",
             version = VERSION,