Changeset 2736

Show
Ignore:
Timestamp:
01/29/18 03:23:31 (3 weeks ago)
Author:
jwoithe
Message:

Allow python interpreter to be specified at build time.

Patch from Nicolas Boulenguez (forwarded to ffado-devel by Benoit Delcour)
which allows packagers to directly specify the python interpreter which
should be used by FFADO components. This is useful for systems which do not
have /usr/bin/python due to only python 3 being installed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r2733 r2736  
    8585    ( "COMPILE_FLAGS", "Deprecated (use CFLAGS and CXXFLAGS with CUSTOM_ENV=True instead).  Add additional flags to the environment.\nOnly meant for distributors and gentoo-users who want to over-optimize their build.\n Using this is not supported by the ffado-devs!" ), 
    8686    EnumVariable( "ENABLE_SETBUFFERSIZE_API_VER", "Report API version at runtime which includes support for dynamic buffer resizing (requires recent jack).", 'auto', allowed_values=('auto', 'true', 'false', 'force'), ignorecase=2), 
     87    ("PYTHON_INTERPRETER", "Python interpreter to be used by FFADO installation.", "/usr/bin/python"), 
    8788 
    8889    ) 
     
    167168def CheckForPyModule( context, module ): 
    168169    context.Message( "Checking for the python module '" + module + "' " ) 
    169     ret = context.TryAction( "python $SOURCE", "import %s" % module, ".py" ) 
     170    ret = context.TryAction( "$PYTHON_INTERPRETER $SOURCE", "import %s" % module, ".py" ) 
    170171    context.Result( ret[0] ) 
    171172    return ret[0] 
     
    519520env['SHAREDIR'] = Template( env['SHAREDIR'] ).safe_substitute( env ) 
    520521env['UDEVDIR'] = Template( env['UDEVDIR'] ).safe_substitute( env ) 
     522env['PYTHON_INTERPRETER'] = Template( env['PYTHON_INTERPRETER'] ).safe_substitute( env ) 
    521523env['prefix'] = Template( env.destdir + env['PREFIX'] ).safe_substitute( env ) 
    522524env['bindir'] = Template( env.destdir + env['BINDIR'] ).safe_substitute( env ) 
  • trunk/libffado/support/mixer-qt4/ffado-mixer.in

    r2125 r2736  
    1 #!/usr/bin/python 
     1#!$PYTHON_INTERPRETER 
    22# 
    33# Copyright (C) 2005-2008 by Pieter Palmers 
  • trunk/libffado/support/tools/ffado-diag.in

    r2698 r2736  
    1 #!/usr/bin/python 
     1#!$PYTHON_INTERPRETER 
    22# 
    33