Exemplo n.º 1
0
                  'export PYTHONPATH\n\n'
                  'exec pythonw.exe "$codegendir/codegen.py" "$@"\n' % PYGTK_SUFFIX)

        outfile = os.path.join(self.build_dir, 'pygobject-codegen-%s' % PYGTK_SUFFIX)
        open(outfile, 'w').write(script)


# glib
glib = PkgConfigExtension(name='glib._glib',
                          pkc_name='glib-%s' % PYGTK_SUFFIX,
                          pkc_version=GLIB_REQUIRED,
                          pygobject_pkc=None,
                          include_dirs=['glib'],
                          libraries=['pyglib'],
                          sources=['glib/glibmodule.c',
                                   'glib/pygiochannel.c',
                                   'glib/pygmaincontext.c',
                                   'glib/pygmainloop.c',
                                   'glib/pygoptioncontext.c',
                                   'glib/pygoptiongroup.c',
                                   'glib/pygsource.c',
                                   'glib/pygspawn.c',
                                   ])

# GObject
gobject = PkgConfigExtension(name='gobject._gobject',
                             pkc_name='gobject-%s' % PYGTK_SUFFIX,
                             pkc_version=GLIB_REQUIRED,
                             pygobject_pkc=None,
                             include_dirs=['glib','gi'],
                             libraries=['pyglib'],
Exemplo n.º 2
0
        self.add_template_option('MATECORBA2_REQUIRED_VERSION', MATECORBA2_REQUIRED)
        self.prepare()

        self.install_template('pymatecorba-2.pc.in',
                              os.path.join(self.libdir, 'pkgconfig'))
        InstallLib.run(self)
        
matecorba = PkgConfigExtension(name='MateCORBA',
                     pkc_name='MateCORBA-2.0',
                     pkc_version=MATECORBA2_REQUIRED,
                     sources=['src/MateCORBAmodule.c',
                              'src/pycorba-typecode.c',
                              'src/pycorba-object.c',
                              'src/pycorba-method.c',
                              'src/pycorba-marshal.c',
                              'src/pycorba-orb.c',
                              'src/pycorba-any.c',
                              'src/pycorba-exceptions.c',
                              'src/pycorba-struct.c',
                              'src/pycorba-enum.c',
                              'src/pycorba-fixed.c',
                              'src/stub-gen.c',
                              'src/pymatecorba-servant.c',
                              'src/pymatecorba-poa.c',
                              'src/pymatecorba-utils.c'])

if not matecorba.can_build():
    raise SystemExit

doclines = __doc__.split("\n")

setup(name="pymatecorba",
Exemplo n.º 3
0
mateconf = TemplateExtension(name='mateconf',
                             pkc_name='mateconf-2.0',
                             pkc_version=MATECONF_REQUIRED_VERSION,
                             output='mate.mateconf',
                             defs='mateconf/mateconf.defs',
                             sources=[
                                 'mateconf/mateconfmodule.c',
                                 'mateconf/mateconf-fixes.c',
                                 'mateconf/mateconf.c'
                             ],
                             register=['mateconf/mateconf.defs'],
                             override='mateconf/mateconf.override')

matecomponent_activation = PkgConfigExtension(
    name='matecomponent.activation',
    pkc_name='matecomponent-activation-2.0',
    pkc_version=MATECOMPONENT_ACTIVATION_REQUIRED_VERSION,
    sources=['matecomponent/activationmodule.c'])

libmatecomponent = TemplateExtension(name='matecomponent',
                              pkc_name='libmatecomponent-2.0',
                              pkc_version=LIBMATECOMPONENT_REQUIRED_VERSION,
                              output='matecomponent._matecomponent',
                              defs='matecomponent/matecomponent.defs',
                              sources=['matecomponent/matecomponentmodule.c',
                                       'matecomponent/matecomponent-arg.c',
                                       'matecomponent/matecomponent.c'],
                              register=MATECOMPONENTDEFS + \
                                       ['matecomponent/matecomponentui.defs'],
                              load_types='matecomponent/matecomponent-arg-types.py',
                              override='matecomponent/matecomponent.override')
Exemplo n.º 4
0
                           register=['mate/zvt.defs'],
                           override='mate/zvt.override')

mateconf = TemplateExtension(name='mateconf',
                          pkc_name='mateconf-2.0',
                          pkc_version=MATECONF_REQUIRED_VERSION,
                          output='mate.mateconf',
                          defs='mateconf/mateconf.defs',
                          sources=['mateconf/mateconfmodule.c',
                                   'mateconf/mateconf-fixes.c',
                                   'mateconf/mateconf.c'],
                          register=['mateconf/mateconf.defs'],
                          override='mateconf/mateconf.override')

matecomponent_activation = PkgConfigExtension(name='matecomponent.activation',
                           pkc_name='matecomponent-activation-2.0',
                           pkc_version=MATECOMPONENT_ACTIVATION_REQUIRED_VERSION,
                           sources=['matecomponent/activationmodule.c'])

libmatecomponent = TemplateExtension(name='matecomponent',
                              pkc_name='libmatecomponent-2.0',
                              pkc_version=LIBMATECOMPONENT_REQUIRED_VERSION,
                              output='matecomponent._matecomponent',
                              defs='matecomponent/matecomponent.defs',
                              sources=['matecomponent/matecomponentmodule.c',
                                       'matecomponent/matecomponent-arg.c',
                                       'matecomponent/matecomponent.c'],
                              register=MATECOMPONENTDEFS + \
                                       ['matecomponent/matecomponentui.defs'],
                              load_types='matecomponent/matecomponent-arg-types.py',
                              override='matecomponent/matecomponent.override')
Exemplo n.º 5
0
class PyGObjectBuild(build):
    enable_threading = 1
PyGObjectBuild.user_options.append(('enable-threading', None,
                                'enable threading support'))

# GObject
gobject = PkgConfigExtension(name='gobject._gobject', pkc_name='gobject-2.0',
                             pkc_version=GOBJECT_REQUIRED,
                             pygobject_pkc=None,
                             sources=['gobject/gobjectmodule.c',
                                      'gobject/pygboxed.c',
                                      'gobject/pygenum.c',
                                      'gobject/pygflags.c',
                                      'gobject/pygobject.c',
                                      'gobject/pygmaincontext.c',
                                      'gobject/pygmainloop.c',
                                      'gobject/pygoptioncontext.c',
                                      'gobject/pygoptiongroup.c',
                                      'gobject/pygparamspec.c',
                                      'gobject/pygpointer.c',
                                      'gobject/pygtype.c',
                                      'gobject/pygsource.c',
                                      'gobject/pygiochannel.c',
                                      ])

data_files = []
ext_modules = []
py_modules = []
py_modules.append('dsextras')

if not have_pkgconfig():
Exemplo n.º 6
0
class PyORBitInstallLib(InstallLib):
    def run(self):
        self.add_template_option('ORBIT2_REQUIRED_VERSION', ORBIT2_REQUIRED)
        self.prepare()

        self.install_template('pyorbit-2.pc.in',
                              os.path.join(self.libdir, 'pkgconfig'))
        InstallLib.run(self)


orbit = PkgConfigExtension(
    name='ORBit',
    pkc_name='ORBit-2.0',
    pkc_version=ORBIT2_REQUIRED,
    sources=[
        'src/ORBitmodule.c', 'src/pycorba-typecode.c', 'src/pycorba-object.c',
        'src/pycorba-method.c', 'src/pycorba-marshal.c', 'src/pycorba-orb.c',
        'src/pycorba-any.c', 'src/pycorba-exceptions.c',
        'src/pycorba-struct.c', 'src/pycorba-enum.c', 'src/pycorba-fixed.c',
        'src/stub-gen.c', 'src/pyorbit-servant.c', 'src/pyorbit-poa.c',
        'src/pyorbit-utils.c'
    ])

if not orbit.can_build():
    raise SystemExit

doclines = __doc__.split("\n")

setup(name="pyorbit",
      version=VERSION,
      license='LGPL',
      platforms=['yes'],
        self.add_template_option('MATECORBA2_REQUIRED_VERSION',
                                 MATECORBA2_REQUIRED)
        self.prepare()

        self.install_template('pymatecorba-2.pc.in',
                              os.path.join(self.libdir, 'pkgconfig'))
        InstallLib.run(self)


matecorba = PkgConfigExtension(
    name='MateCORBA',
    pkc_name='MateCORBA-2.0',
    pkc_version=MATECORBA2_REQUIRED,
    sources=[
        'src/MateCORBAmodule.c', 'src/pycorba-typecode.c',
        'src/pycorba-object.c', 'src/pycorba-method.c',
        'src/pycorba-marshal.c', 'src/pycorba-orb.c', 'src/pycorba-any.c',
        'src/pycorba-exceptions.c', 'src/pycorba-struct.c',
        'src/pycorba-enum.c', 'src/pycorba-fixed.c', 'src/stub-gen.c',
        'src/pymatecorba-servant.c', 'src/pymatecorba-poa.c',
        'src/pymatecorba-utils.c'
    ])

if not matecorba.can_build():
    raise SystemExit

doclines = __doc__.split("\n")

setup(name="pymatecorba",
      version=VERSION,
      license='LGPL',
#!/usr/bin/env python

#from distutils.core import setup, Extension
from distutils.core import setup
from dsextras import PkgConfigExtension

visualizercontrolbase = PkgConfigExtension(name='VisualizerControlBase',
                                           pkc_name='gstreamer-0.10',
                                           pkc_version='',
                                           sources=['visualizercontrolbase.c'])

setup(name='visualizercontrolbase',
      version='1.0',
      description='Module containing VisualizerControl base class',
      ext_modules=[visualizercontrolbase])
Exemplo n.º 9
0
        self.add_template_option('ORBIT2_REQUIRED_VERSION', ORBIT2_REQUIRED)
        self.prepare()

        self.install_template('pyorbit-2.pc.in',
                              os.path.join(self.libdir, 'pkgconfig'))
        InstallLib.run(self)
        
orbit = PkgConfigExtension(name='ORBit',
                     pkc_name='ORBit-2.0',
                     pkc_version=ORBIT2_REQUIRED,
                     sources=['src/ORBitmodule.c',
                              'src/pycorba-typecode.c',
                              'src/pycorba-object.c',
                              'src/pycorba-method.c',
                              'src/pycorba-marshal.c',
                              'src/pycorba-orb.c',
                              'src/pycorba-any.c',
                              'src/pycorba-exceptions.c',
                              'src/pycorba-struct.c',
                              'src/pycorba-enum.c',
                              'src/pycorba-fixed.c',
                              'src/stub-gen.c',
                              'src/pyorbit-servant.c',
                              'src/pyorbit-poa.c',
                              'src/pyorbit-utils.c'])

if not orbit.can_build():
    raise SystemExit

doclines = __doc__.split("\n")

setup(name="pyorbit",