Exemple #1
0
# We require python 2.5 or later, so complain if that isn't satisfied.
if sys.version.split()[0] < '2.5':
    print "Python 2.5 or later required."
    sys.exit(1)

try:
    # kaa base imports
    from kaa.distribution.core import setup, Extension
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)
    
ext_modules = []
#libvisual = Extension("kaa.popcorn._libvisual", ['src/extensions/libvisual.c'])
#if libvisual.check_library("libvisual", "0.2.0"):
#    print "+ libvisual support enabled"
#    ext_modules.append(libvisual)
#else:
#    print "- libvisual support disabled"

setup(module = 'popcorn', 
      version = '0.2.0', 
#      scripts = [ 'bin/popcorn' ],
      license = 'GPL',
      summary = 'Media player abstraction library supporting multiple backends',
      rpminfo = {
          'requires':       'python-kaa-base >= 0.1.2, python-kaa-xine >= 0.9.0',
          'build_requires': 'python-kaa-base >= 0.1.2'
      },
      ext_modules = ext_modules)
Exemple #2
0
#
# -----------------------------------------------------------------------------

# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)


setup(module       = 'webmetadata',
      version      = '0.1.0',
      license      = 'LGPL',
      summary      = 'Receive Metadata from the Web',
      scripts      = [ 'bin/webinfo' ],
      # used when setuptools is not available
      plugins      = { 'kaa.beacon.server.plugins': 'src/beacon/server',
                       'kaa.beacon.plugins': 'src/beacon/client'},
      # used when setuptools is available and plugin is installed as an egg
      entry_points = {'kaa.beacon.server.plugins': 'webmetadata = kaa.webmetadata.beacon.server.webmetadata:Plugin',
                      'kaa.beacon.plugins': 'webmetadata = kaa.webmetadata.beacon.client.webmetadata:Plugin'},
      rpminfo      = {
          'requires':       'python-kaa-base >= 0.1.2',
          'build_requires': 'python-kaa-base >= 0.1.2'
      }
      )
Exemple #3
0
# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

ext_modules = []

ofa = Extension('kaa.netsearch.ofa', [ 'src/ofa.cc' ])
if not ofa.check_library('libofa', '0.9'):
    print 'libofa >= 0.9 not found'
    print 'building without musicdns support'
else:
    ext_modules.append(ofa)

setup(module      = 'netsearch',
      version     = '0.1',
      ext_modules = ext_modules
)
Exemple #4
0
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import setup
except ImportError:
    print "kaa.base not installed"
    sys.exit(1)

# call setup
setup(
    module="cherrypy",
    version="0.1.0",
    license="GPL",
    summary="Web framework based on cherrypy",
    rpminfo={"requires": "python-kaa-base >= 0.1.2", "build_requires": "python-kaa-base >= 0.1.2"},
    namespace_packages=["kaa"],
)
Exemple #5
0
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import setup
except ImportError:
    print "kaa.base not installed"
    sys.exit(1)

setup(
    module="mevas",
    version="0.1.0",
    license="LGPL",
    summary="MeBox Canvas library",
    rpminfo={
        "requires": "python-kaa-base >= 0.1.2, python-kaa-imlib2 >= 0.2.0",
        "build_requires": "python-kaa-base >= 0.1.2",
    },
    namespace_packages=["kaa"],
)
Exemple #6
0
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)


setup(
    module = 'epg',
    version = '0.1.0',
    license = 'LGPL',
    summary = 'Electronic Program Guide',
    rpminfo = {
        'requires': 'python-kaa-base >= 0.1.2',
        'build_requires': 'python-kaa-base >= 0.1.2'
    },
    namespace_packages = ['kaa']
)
Exemple #7
0
setup(
    module=MODULE,
    version=version,
    license='LGPL',
    url='http://api.freevo.org/kaa-base/',
    summary=
    'An application framework specializing in asynchronous programming.',
    description=
    'kaa.base is an LGPL-licensed generic application framework, providing the '
    'foundation for other modules within Kaa, and can be used in any type of project, '
    'from small event-driven tools, to larger, complex applications.',
    rpminfo={
        'requires':
        'glib2 >= 2.6.0, python-sqlite2 >= 2.3.0, libxml2-python >= 2.6.0',
        'build_requires': 'glib2-devel >= 2.6.0, python-devel >= 2.5.0'
    },
    ext_modules=extensions,
    opts_2to3={
        # Everything listed in 'exclude' is imported directly here (for distribution),
        # so it must compile with both python 2.6 and 3.x.
        'exclude': ['distribution/*', 'saxutils.py', 'strutils.py'],
        'nofix': {
            '*.py': ['import'],
            'utils.py': ['filter'],
            'io.py': ['throw'],
            'rpc.py': ['throw'],
        }
    },
    auto_changelog=True,
    # Don't declare kaa.base as part of the kaa namespace.  Doing so will
    # suppress installation of kaa/__init__.py when installing with pip.  This
    # needs to be installed with kaa.base in order to make our namespace hack
    # work (where everything in kaa.base is under kaa).
    # namespace_packages = ['kaa']
)
Exemple #8
0
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# -----------------------------------------------------------------------------

import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

# We require python 2.5 or later, so complain if that isn't satisfied.
if sys.version.split()[0] < '2.5':
    print "Python 2.5 or later required."
    sys.exit(1)

setup(name='tvserver',
      version='2.0.0',
      license='GPL',
      summary='Freevo TV Server',
      author='Dirk Meyer, et al.',
      author_email='*****@*****.**',
      url='http://www.freevo.org',
      scripts=['bin/tvserver'])
Exemple #9
0
try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

setup(
    module='webmetadata',
    version='0.1.0',
    license='LGPL',
    summary='Receive Metadata from the Web',
    scripts=['bin/webinfo'],
    # used when setuptools is not available
    plugins={
        'kaa.beacon.server.plugins': 'src/beacon/server',
        'kaa.beacon.plugins': 'src/beacon/client'
    },
    # used when setuptools is available and plugin is installed as an egg
    entry_points={
        'kaa.beacon.server.plugins':
        'webmetadata = kaa.webmetadata.beacon.server.webmetadata:Plugin',
        'kaa.beacon.plugins':
        'webmetadata = kaa.webmetadata.beacon.client.webmetadata:Plugin'
    },
    rpminfo={
        'requires': 'python-kaa-base >= 0.1.2',
        'build_requires': 'python-kaa-base >= 0.1.2'
    })
Exemple #10
0
# -----------------------------------------------------------------------------

# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)
    
ext_modules = []
mng = Extension("kaa.candy._mng", ['src/extensions/mng.c'])
if mng.check_cc(["<libmng.h>"], "", "-lmng"):
    ext_modules.append(mng)
    mng.libraries.append("mng")
    print "+ mng support enabled"
else:
    print "- mng support disabled"

svg = Extension("kaa.candy._svg", ['src/extensions/svg.c'])
if svg.check_library("librsvg-2.0", "2.10.0"):
    ext_modules.append(svg)
    print "+ svg support enabled"
else:
    print "- svg support disabled"


setup(module = 'candy', version = '0.5', ext_modules = ext_modules)
Exemple #11
0
        if major_version and int(
                module._version.split('.')[0]) != major_version:
            print 'failed'
            print 'wrong major version: %s' % module._version
            sys.exit(1)
    print 'ok'


check_version('GObject', '2.0')
check_version('Gst', '1.0')
check_version('Clutter', '1.0', 1, 12)
check_version('ClutterGst', '2.0')

if len(sys.argv) == 2 and sys.argv[1] == 'clean':
    for file in ('build', 'dist', 'src/version.py', 'MANIFEST',
                 'src/backend/gen_libcandy.c'):
        if os.path.isdir(file):
            print 'removing %s' % file
            os.system('rm -rf %s' % file)
        if os.path.isfile(file):
            print 'removing %s' % file
            os.unlink(file)
    sys.exit(0)

# now trigger the python magic
setup(module='candy',
      version='0.0.2',
      license='GPL',
      summary='Fourth generation Canvas System using Clutter as backend',
      namespace_packages=['kaa'])
Exemple #12
0
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# -----------------------------------------------------------------------------

import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

# We require python 2.5 or later, so complain if that isn't satisfied.
if sys.version.split()[0] < '2.5':
    print "Python 2.5 or later required."
    sys.exit(1)

setup(name         = 'tvserver',
      version      = '2.0.0',
      license      = 'GPL',
      summary      = 'Freevo TV Server',
      author       = 'Dirk Meyer, et al.',
      author_email = '*****@*****.**',
      url          = 'http://www.freevo.org',
      scripts      = [ 'bin/tvserver' ]
)
Exemple #13
0
# fdsplitter module
fdsplitter = Extension('kaa.record._fdsplitter', [ 'src/fdsplitter.cc' ] )

# filter module
files = [ 'src/fp_filewriter.cc', 'src/fp_remux.cc', 'src/fp_udpsend.cc',
          'src/remux.cc', 'src/ringbuffer.cc', 'src/filter.cc']
filter = Extension('kaa.record._filter', files)

# list of all modules
ext_modules = [ dvb, filter, fdsplitter ]

# vbi module
vbi = Extension('kaa.record._vbi', ['src/vbi.cc'])
if not vbi.check_cc(['"libzvbi.h"'], '', '-lzvbi'):
    print 'libzvbi not found, disable vbi support'
else:
    vbi.libraries.append('zvbi')
    ext_modules.append(vbi)
    
setup(module      = 'record',
      version     = '0.1.0',
      license     = 'GPL',
      summary     = 'Python library for recording from different types of tv cards to different outputs.',
      rpminfo     = {
          'requires':       'python-kaa-base >= 0.1.2',
          'build_requires': 'python-kaa-base >= 0.1.2'
      },
      ext_modules = ext_modules
)
Exemple #14
0
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import setup, Extension
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)
    
ext_modules = []
libvisual = Extension("kaa.player._libvisual", ['src/extensions/libvisual.c'])
if libvisual.check_library("libvisual", "0.2.0"):
    print "+ libvisual support enabled"
    ext_modules.append(libvisual)
else:
    print "- libvisual support disabled"

setup(module = 'player', version = '0.1', ext_modules = ext_modules)
Exemple #15
0
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys

# We require python 2.5 or later, so complain if that isn't satisfied.
if sys.version.split()[0] < '2.5':
    print "Python 2.5 or later required."
    sys.exit(1)

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError, e:
    print e
    print 'kaa.base not installed'
    sys.exit(1)

setup(
    module = 'xmpp',
    version = '0.1.0',
    license = 'LGPL',
    summary = 'XMPP',
    namespace_packages = ['kaa']
)
Exemple #16
0
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

setup(module='epg',
      version='0.1.0',
      license='LGPL',
      summary='Electronic Program Guide',
      rpminfo={
          'requires': 'python-kaa-base >= 0.1.2',
          'build_requires': 'python-kaa-base >= 0.1.2'
      },
      namespace_packages=['kaa'])
Exemple #17
0
    else:
        print('- Linux-specific features not being built (inotify, set_process_name)')


# call setup
setup(
    module = 'base',
    version = '0.99.0',
    license = 'LGPL',
    url = 'http://doc.freevo.org/api/kaa/base/',
    summary = 'An application framework specializing in asynchronous programming.',
    description  = 'kaa.base is an LGPL-licensed generic application framework, providing the '
                   'foundation for other modules within Kaa, and can be used in any type of project, '
                   'from small event-driven tools, to larger, complex applications.',
    rpminfo = {
        'requires': 'glib2 >= 2.6.0, python-sqlite2 >= 2.3.0, libxml2-python >= 2.6.0',
        'build_requires': 'glib2-devel >= 2.6.0, python-devel >= 2.5.0'
    },
    ext_modules = extensions,
    opts_2to3 = {
        # Everything listed in 'exclude' is imported directly here (for distribution),
        # so it must compile with both python 2.6 and 3.x.
        'exclude': ['distribution/*', 'saxutils.py'],
        'nofix': {
            '*.py': ['import'],
        }
    },
    namespace_packages = ['kaa']
)
Exemple #18
0
# ok, add defs file to the path
clutter_defs += '/clutter-base-types.defs'

# now check if we need to build the wrapper code file
# Note: the defs file was created by
# python /usr/lib/python2.6/site-packages/gtk-2.0/codegen/h2def.py clutter-reflect-texture.h
# This it may be needed in the future to edit this file manually it is
# in svn and not generated on the fly
gen_stat = 0
if os.path.isfile('src/backend/gen_libcandy.c'):
    gen_stat = os.stat('src/backend/gen_libcandy.c')[stat.ST_MTIME]
for m in libcandy_modules:
    if os.stat('src/backend/%s.h' % m)[stat.ST_MTIME] > gen_stat:
        print 'creating python wrapper file'
        os.system(
            '%s -I src/backend/libcandy --py_ssize_t-clean --prefix libcandy ' \
            '--register %s --override src/backend/libcandy.override ' \
            'src/backend/libcandy.defs > src/backend/gen_libcandy.c' \
            % (pygobject_codegen,clutter_defs))
        break

# now trigger the python magic
setup(
    module = 'candy',
    version = '0.0.9',
    license = 'LGPL',
    summary = 'Third generation Canvas System using Clutter as backend.',
    ext_modules  = [ libcandy ],
    namespace_packages = ['kaa']
)
Exemple #19
0
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)
    
thumbnailer = Extension("kaa.thumb._thumbnailer",
                        ["src/thumbnail.c", "src/png.c" ],
                        config='src/config.h')

if not thumbnailer.check_library('imlib2', '1.1.1'):
    print 'Imlib2 >= 1.1.1 not found'
    print 'Download from http://enlightenment.freedesktop.org/'
    sys.exit(1)

if not thumbnailer.check_library('libpng', '1.2.0'):
    print 'libpng >= 1.2.0 not found'
    sys.exit(1)

if thumbnailer.check_library('epeg', '0.9'):
    print 'epeg extention enabled'
    thumbnailer.config('#define USE_EPEG')
else:
    print 'epeg extention disabled'

# call setup
setup(module      = 'thumb',
      version     = '0.1',
      ext_modules = [ thumbnailer ],
      scripts     = [ 'bin/kaa-thumb' ],
      )
Exemple #20
0
# python imports
import sys

# We require python 2.5 or later, so complain if that isn't satisfied.
if sys.version.split()[0] < "2.5":
    print "Python 2.5 or later required."
    sys.exit(1)

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print "kaa.base not installed"
    sys.exit(1)


setup(
    module="feedmanager",
    version="0.1.0",
    license="LGPL",
    summary="RSS/Atom Feedmanager plugin for beacon.",
    # used when setuptools is not available
    plugins={"kaa.beacon.server.plugins": "src/beacon"},
    # used when setuptools is available and plugin is installed as an egg
    entry_points={"kaa.beacon.server.plugins": "feeds = kaa.feedmanager.bootstrap:Plugin"},
    scripts=["bin/beacon-feedmanager"],
    rpminfo={"requires": "python-kaa-beacon >= 0.1.0", "build_requires": "python-kaa-beacon >= 0.1.0"},
    namespace_packages=["kaa"],
)
Exemple #21
0
setup(
    module = MODULE,
    version = version,
    license = 'LGPL',
    url = 'http://api.freevo.org/kaa-base/',
    summary = 'An application framework specializing in asynchronous programming.',
    description  = 'kaa.base is an LGPL-licensed generic application framework, providing the '
                   'foundation for other modules within Kaa, and can be used in any type of project, '
                   'from small event-driven tools, to larger, complex applications.',
    rpminfo = {
        'requires': 'glib2 >= 2.6.0, libxml2-python >= 2.6.0',
        'build_requires': 'glib2-devel >= 2.6.0, python-devel >= 2.6.0'
    },
    ext_modules = extensions,
    opts_2to3 = {
        # Everything listed in 'exclude' is imported directly here (for distribution),
        # so it must compile with both python 2.6 and 3.x.
        'exclude': ['distribution/*', 'saxutils.py', 'strutils.py'],
        'nofix': {
            '*.py': ['import'],
            'utils.py': ['filter'],
            'io.py': ['throw'],
            'rpc.py': ['throw'],
            'async.py': ['throw']
        }
    },
    auto_changelog = True,
    # Don't declare kaa.base as part of the kaa namespace.  Doing so will
    # suppress installation of kaa/__init__.py when installing with pip.  This
    # needs to be installed with kaa.base in order to make our namespace hack
    # work (where everything in kaa.base is under kaa).
    # namespace_packages = ['kaa']
)
Exemple #22
0
    print 'Download from http://enlightenment.freedesktop.org/'
    sys.exit(1)


if imlib2so.check_cc(['<fcntl.h>'], 'shm_open("foobar");', '-lrt'):
    imlib2so.config('#define HAVE_POSIX_SHMEM')
    print "POSIX shared memory enabled"
else:
    print "POSIX shared memory disabled"

if imlib2so.check_library("librsvg-2.0", "2.10.0"):
    imlib2so.config('#define HAVE_SVG')
    files.append('src/svg.c')
    print "+ svg support enabled"
else:
    print "- svg support disabled"

setup(
    module = 'imlib2',
    version = '0.3.0',
    license = 'LGPL',
    summary = 'Python bindings for Imlib2',
    rpminfo = {
        'requires': 'python-kaa-base >= 0.1.2, imlib2 >= 1.2.1',
        'build_requires': 'python-kaa-base >= 0.1.2, imlib2-devel >= 1.2.1'
    },
    ext_modules = [imlib2so],
    namespace_packages = ['kaa'],
#    zip_safe=True
)
Exemple #23
0
# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

# NOTE: this is no python module!
# It is a gstreamer plugin not in the gstreamer plugin path.
# When kaa.record2 is init, this module will be added to
# gstreaner on runtime.
tuner = Extension('kaa.record2._gstrecord',
                  [ 'gst/gstdvbtuner.c', 'gst/gsttssplitter.c',
                    'gst/gstmain.c' ],
                  config='gst/config.h')
tuner.config('#define VERSION "0.1"')
tuner.config('#define PACKAGE "kaa.record"')

if not tuner.check_library('gstreamer-0.10', '0.1'):
    print 'gstreamer 0.10 not found'
    sys.exit(1)

setup(module      = 'record2',
      version     = '0.1',
      ext_modules = [ tuner ]
)
Exemple #24
0
    from kaa.db import sqlite
    if sqlite.version_info < (2, 3):
        version = '.'.join([str(x) for x in sqlite.version_info])
        print 'pysqlite2 >= 2.3.0 required, found %s' % version
        sys.exit(1)
except ImportError:
    print 'pysqlite2 is not installed'
    sys.exit(1)

ext_modules = [thumb_ext]

setup(
    module='beacon',
    version='0.1.0',
    license='LGPL',
    summary="Media-oriented virtual filesystem",
    scripts=[
        'bin/kaa-thumb', 'bin/beacon-daemon', 'bin/beacon-search',
        'bin/beacon-mount'
    ],
    rpminfo={
        'requires':
        'python-kaa-base >= 0.1.2, imlib2 >= 1.2.1',
        'build_requires':
        'python-kaa-base >= 0.1.2, imlib2-devel >= 1.2.1, python-devel >= 2.4.0'
    },
    ext_modules=ext_modules,
    namespace_packages=['kaa'],
    auto_changelog=True,
)
Exemple #25
0
        if major_version and int(module._version.split('.')[0]) != major_version:
            print 'failed'
            print 'wrong major version: %s' % module._version
            sys.exit(1)
    print 'ok'

check_version('GObject', '2.0')
check_version('Gst', '1.0')
check_version('Clutter', '1.0', 1, 12)
check_version('ClutterGst', '2.0')

if len(sys.argv) == 2 and sys.argv[1] == 'clean':
    for file in ('build', 'dist', 'src/version.py', 'MANIFEST',
                 'src/backend/gen_libcandy.c'):
        if os.path.isdir(file):
            print 'removing %s' % file
            os.system('rm -rf %s' % file)
        if os.path.isfile(file):
            print 'removing %s' % file
            os.unlink(file)
    sys.exit(0)

# now trigger the python magic
setup(
    module = 'candy',
    version = '0.0.2',
    license = 'GPL',
    summary = 'Fourth generation Canvas System using Clutter as backend',
    namespace_packages = ['kaa']
)
Exemple #26
0
    ext_modules = [ cdrom ]

if not cdrom.has_python_h():
    print "---------------------------------------------------------------------"
    print "Python headers not found; please install python development package."
    print "Rom drive support will be unavailable"
    print "---------------------------------------------------------------------"
    ext_modules = [ ]

exiv2 = Extension('kaa.metadata.image.exiv2', ['src/image/exiv2.cpp'])
if exiv2.check_library('exiv2', '0.18'):
    print 'Building experimental exiv2 parser'
    ext_modules.append(exiv2)
    
setup(
    module = 'metadata',
    version = '0.7.7',
    license = 'GPL',
    summary = 'Module for retrieving information about media files',
    author = 'Thomas Schueppel, Dirk Meyer, Jason Tackaberry',
    scripts = [ 'bin/mminfo' ],
    rpminfo = {
        'requires': 'python-kaa-base >= 0.1.2, libdvdread >= 0.9.4',
        'build_requires': 'python-kaa-base >= 0.1.2, libdvdread-devel >= 0.9.4, python-devel >= 2.3.0',
        'obsoletes': 'mmpython'
    },
    ext_modules = ext_modules,
    namespace_packages = ['kaa']
)

Exemple #27
0
    thumb_ext.config('#define USE_EPEG')
else:
    print 'libjpeg not installed, deactivating fast thumbnailer'

try:
    from kaa.db import sqlite
    if sqlite.version_info < ( 2, 3 ):
        version = '.'.join([ str(x) for x in sqlite.version_info ])
        print 'pysqlite2 >= 2.3.0 required, found %s' % version
        sys.exit(1)
except ImportError:
    print 'pysqlite2 is not installed'
    sys.exit(1)

ext_modules = [ thumb_ext ]


setup(
    module = 'beacon',
    version = '0.1.0',
    license = 'LGPL',
    summary = "Media-oriented virtual filesystem",
    scripts = ['bin/kaa-thumb', 'bin/beacon-daemon', 'bin/beacon-search', 'bin/beacon-mount'],
    rpminfo = {
        'requires': 'python-kaa-base >= 0.1.2, imlib2 >= 1.2.1',
        'build_requires': 'python-kaa-base >= 0.1.2, imlib2-devel >= 1.2.1, python-devel >= 2.4.0'
    },
    ext_modules = ext_modules,
    namespace_packages = ['kaa']
)
Exemple #28
0
# python imports
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

setup(module      = 'record3',
      version     = '0.1'
)