[xiph-commits] r8949 - in icecast/tags: . shout_python-0_2

brendan at motherfish-iii.xiph.org brendan at motherfish-iii.xiph.org
Sat Feb 19 10:02:11 PST 2005


Author: brendan
Date: 2005-02-19 10:02:10 -0800 (Sat, 19 Feb 2005)
New Revision: 8949

Added:
   icecast/tags/shout_python-0_2/
   icecast/tags/shout_python-0_2/setup.py
Removed:
   icecast/tags/shout_python-0_2/setup.py
Log:
Tag shout-python 0.2 (libshout 2.1)


Copied: icecast/tags/shout_python-0_2 (from rev 8919, icecast/trunk/shout-python)

Deleted: icecast/tags/shout_python-0_2/setup.py
===================================================================
--- icecast/trunk/shout-python/setup.py	2005-02-14 19:48:33 UTC (rev 8919)
+++ icecast/tags/shout_python-0_2/setup.py	2005-02-19 18:02:10 UTC (rev 8949)
@@ -1,61 +0,0 @@
-# distutils build script
-# To install shout-python, run 'python setup.py install'
-
-from distutils.core import setup, Extension
-import os
-import sys
-
-ver = '0.1'
-
-# write default shout.pc path into environment if PKG_CONFIG_PATH is unset
-if not os.environ.has_key('PKG_CONFIG_PATH'):
-  os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig'
-
-# Find shout compiler/linker flag via pkgconfig or shout-config
-if os.system('pkg-config --exists shout 2> /dev/null') == 0:
-  pkgcfg = os.popen('pkg-config --cflags shout')
-  cflags = pkgcfg.readline().strip()
-  pkgcfg.close()
-  pkgcfg = os.popen('pkg-config --libs shout')
-  libs = pkgcfg.readline().strip()
-  pkgcfg.close()
-
-else:
-  if os.system('pkg-config --usage 2> /dev/null') == 0:
-    print "pkg-config could not find libshout: check PKG_CONFIG_PATH"
-  if os.system('shout-config 2> /dev/null') == 0:
-    scfg = os.popen('shout-config --cflags')
-    cflags = scfg.readline().strip()
-    scfg.close()
-    scfg = os.popen('shout-config --libs')
-    libs = scfg.readline().strip()
-    scfg.close()
-
-  else:
-    print "pkg-config and shout-config unavailable, build terminated"
-    sys.exit(1)
-
-# there must be an easier way to set up these flags!
-iflags = [x[2:] for x in cflags.split() if x[0:2] == '-I']
-extra_cflags = [x for x in cflags.split() if x[0:2] != '-I']
-libdirs = [x[2:] for x in libs.split() if x[0:2] == '-L']
-libsonly = [x[2:] for x in libs.split() if x[0:2] == '-l']
-
-# include_dirs=[]
-# libraries=[]
-# runtime_library_dirs=[]
-# extra_objects, extra_compile_args, extra_link_args
-shout = Extension('shout', sources = ['shout.c'],
-                  include_dirs = iflags,
-                  extra_compile_args = extra_cflags,
-                  library_dirs = libdirs,
-                  libraries = libsonly)
-
-# data_files = []
-setup (name = 'shout-python',
-       version = ver,
-       description = 'Bindings for libshout 2',
-       url = 'http://icecast.org/download.php',
-       author = 'Brendan Cully',
-       author_email = 'brendan at xiph.org',
-       ext_modules = [shout])

Copied: icecast/tags/shout_python-0_2/setup.py (from rev 8948, icecast/trunk/shout-python/setup.py)



More information about the commits mailing list