[lkml]   [2011]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Use the environment variable PYTHON if defined
    On Thu, Mar 31, 2011 at 14:15, Raghavendra D Prabhu <> wrote:
    > Hi,
    >    Regarding the point where it warns about python-devel not existing,
    > it looks like that existing feature test will pass even when python3 is
    > chosen and fail at a later stage. So I made this little change to feature
    > test so that it fails when python3 is chosen and perf build succeeds with
    > the warning printed rather than failing later.

    Good point.

    However, try-cc does not run the resulting program after
    compiling it, so the test still succeeds.

    What you want to do is make the compilation fail;
    to do so, move your test here:

    #include <Python.h>

    #if PY_VERSION_HEX >= 0x03000000
    #error "Python 3 is not yet supported; set PYTHON{,_CONFIG}"

    int main(void)

    Put your replies below the email quote.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2011-03-31 22:31    [W:0.019 / U:5.660 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site