# Path: fofix/core/SceneFactory.py
# SCENE_INFO = {
#     "SongChoosingScene": "fofix.game.SongChoosingScene",
#     "GuitarScene": "fofix.game.guitarscene",
#     "GameResultsScene": "fofix.game.GameResultsScene",
# }
# def create(engine, name, **args):


import distutils.ccompiler
import sys, glob, os, fnmatch
import subprocess
import shlex
import numpy
        import py2exe
        import py2app
import OpenGL
from distutils.dep_util import newer
from distutils.command.install import install as _install
from fofix.core import Version, SceneFactory
from setuptools import setup, Extension, Command
from Cython.Build import cythonize
        from py2exe.resources.VersionInfo import RT_VERSION
        from py2exe.resources.VersionInfo import Version as VersionResource
        from OpenGL_accelerate import formathandler
if os.name == 'nt':
    lib_blacklist = ['m', 'mingw32']
else:
    lib_blacklist = []


def pc_info(pkg, altnames=None):
    '''Obtain build options for a library from pkg-config and
    return a dict that can be expanded into the argument list for
    L{distutils.core.Extension}.'''

    altnames = [] if altnames is None else altnames
    sys.stdout.write('checking for library %s... ' % pkg)
    if not pc_exists(pkg):
        for name in altnames:
            if pc_exists(name):
                pkg = name
                sys.stdout.write('(using alternative name %s) ' % pkg)
                break
        else:
            print('not found')
            sys.stderr.write('Could not find required library "%s".\n' % pkg)
            sys.stderr.write('(Also tried the following alternative names: %s)\n' % ', '.join(altnames))
            if os.name == 'nt':
                sys.stderr.write('(Check that you have the latest version of the dependency pack installed.)\n')
            else:
                sys.stderr.write('(Check that you have the appropriate development package installed.)\n')
            sys.exit(1)

    cflags = shlex.split(subprocess.check_output([pkg_config, '--cflags', pkg]).decode())

# Path: fofix/core/SceneFactory.py
# SCENE_INFO = {
#     "SongChoosingScene": "fofix.game.SongChoosingScene",
#     "GuitarScene": "fofix.game.guitarscene",
#     "GameResultsScene": "fofix.game.GameResultsScene",
# }
# def create(engine, name, **args):


# Path: setup.py
import distutils.ccompiler
import sys, glob, os, fnmatch
import subprocess
import shlex
import numpy
        import py2exe
        import py2app
import OpenGL
from distutils.dep_util import newer
from distutils.command.install import install as _install
from fofix.core import Version, SceneFactory
from setuptools import setup, Extension, Command
from Cython.Build import cythonize
        from py2exe.resources.VersionInfo import RT_VERSION
        from py2exe.resources.VersionInfo import Version as VersionResource
        from OpenGL_accelerate import formathandler

if os.name == 'nt':
    lib_blacklist = ['m', 'mingw32']
else:
    lib_blacklist = []


def pc_info(pkg, altnames=None):
    '''Obtain build options for a library from pkg-config and
    return a dict that can be expanded into the argument list for
    L{distutils.core.Extension}.'''

    altnames = [] if altnames is None else altnames
    sys.stdout.write('checking for library %s... ' % pkg)
    if not pc_exists(pkg):
        for name in altnames:
            if pc_exists(name):
                pkg = name
                sys.stdout.write('(using alternative name %s) ' % pkg)
                break
        else:
            print('not found')
            sys.stderr.write('Could not find required library "%s".\n' % pkg)
            sys.stderr.write('(Also tried the following alternative names: %s)\n' % ', '.join(altnames))
            if os.name == 'nt':
                sys.stderr.write('(Check that you have the latest version of the dependency pack installed.)\n')
            else:
                sys.stderr.write('(Check that you have the appropriate development package installed.)\n')
            sys.exit(1)

    cflags = shlex.split(subprocess.check_output([pkg_config, '--cflags', pkg]).decode())

    libs = shlex.split(subprocess.check_output([pkg_config, '--libs', pkg]).decode())