def configuration(parent_package='', top_path=None, package_name='soundio'): from numpy.distutils.misc_util import Configuration config = Configuration(package_name, parent_package, top_path) alsa_info = info_factory('alsa', ['asound'], ['alsa/asoundlib.h'], classname='AlsaInfo')() try: alsa_config = alsa_info.get_info(2) config.add_extension("_alsa_backend", sources=["alsa/_alsa_backend.c"], extra_info=alsa_config) except NotFoundError: warnings.warn("Alsa not found - alsa backend not build") core_audio_info = info_factory('CoreAudio', [], [], frameworks=["CoreAudio"], classname='CoreAudioInfo')() try: core_audio_config = core_audio_info.get_info(2) config.add_extension("macosx_backend", sources=["macosx/macosx_backend.c"], extra_info=core_audio_config) except NotFoundError: warnings.warn("CoreAudio not found - CoreAudio backend not build") return config
def configuration(parent_package='', top_path=None, package_name='soundio'): from numpy.distutils.misc_util import Configuration config = Configuration(package_name, parent_package, top_path) alsa_info = info_factory('alsa', ['asound'], ['alsa/asoundlib.h'], classname='AlsaInfo')() try: alsa_config = alsa_info.get_info(2) config.add_extension("_alsa_backend", sources=["alsa/_alsa_backend.pyx"], extra_info=alsa_config) except NotFoundError: warnings.warn("Alsa not found - alsa backend not build") core_audio_info = info_factory('CoreAudio', [], [], frameworks=["CoreAudio"], classname='CoreAudioInfo')() try: core_audio_config = core_audio_info.get_info(2) config.add_extension("macosx_backend", sources=["macosx/macosx_backend.pyx"], extra_info=core_audio_config) except NotFoundError: warnings.warn("CoreAudio not found - CoreAudio backend not build") return config
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration confgr = Configuration('pysdif',parent_package,top_path) sf_info = info_factory('sdif', ['sdif'], ['sdif.h'])() try: sf_config = sf_info.get_info(2) except NotFoundError: raise NotFoundError("""\ sdif library not found.""") confgr.add_extension('_pysdif', ['_pysdif.c'], extra_info=sf_config) return confgr
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('sksamplerate', parent_package, top_path) # Check that sndfile can be found and get necessary informations sf_info = info_factory('samplerate', ['samplerate'], ['samplerate.h'], classname='SamplerateInfo')() try: sf_config = sf_info.get_info(2) except NotFoundError: raise NotFoundError("""\ SRC (http://www.mega-nerd.com/SRC/) library not found. Directories to search for the libraries can be specified in the site.cfg file, in section [samplerate].""") config.add_extension('_samplerate', ['_samplerate.c'], extra_info=sf_config) config.add_subpackage('tests') return config
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration confgr = Configuration('pysndfile',parent_package,top_path) if os.path.exists('pysndfile.py'): os.remove('pysndfile.py') # Check that sndfile can be found and get necessary informations sf_info = info_factory('sndfile', ['sndfile'], ['sndfile.h'], classname='SndfileInfo')() try: sf_config = sf_info.get_info(2) except NotFoundError: raise NotFoundError("""\ sndfile (http://www.mega-nerd.com/libsndfile/) library not found. Directories to search for the libraries can be specified in the site.cfg file, in section [sndfile].""") confgr.add_extension('_sndfile', ['_sndfile.c'], extra_info=sf_config) return confgr
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration confgr = Configuration('pysndfile', parent_package, top_path) if os.path.exists('pysndfile.py'): os.remove('pysndfile.py') # Check that sndfile can be found and get necessary informations sf_info = info_factory('sndfile', ['sndfile'], ['sndfile.h'], classname='SndfileInfo')() try: sf_config = sf_info.get_info(2) except NotFoundError: raise NotFoundError("""\ sndfile (http://www.mega-nerd.com/libsndfile/) library not found. Directories to search for the libraries can be specified in the site.cfg file, in section [sndfile].""") confgr.add_extension('_sndfile', ['_sndfile.c'], extra_info=sf_config) return confgr
def configuration(parent_package="", top_path=None): from numpy.distutils.misc_util import Configuration confgr = Configuration("samplerate", parent_package, top_path) # Check that sndfile can be found and get necessary informations sf_info = info_factory("samplerate", ["samplerate"], ["samplerate.h"], classname="SamplerateInfo")() try: sf_config = sf_info.get_info(2) except NotFoundError: raise NotFoundError( """\ SRC (http://www.mega-nerd.com/SRC/) library not found. Directories to search for the libraries can be specified in the site.cfg file, in section [samplerate].""" ) confgr.add_extension("_samplerate", ["_samplerate.c"], extra_info=sf_config) confgr.add_data_dir("tests") return confgr