setup.py
changeset 9140 ac0f082faa6c
parent 9031 3b76321aa0de
parent 9124 632df73485ae
child 9142 63cfacb7917e
equal deleted inserted replaced
9139:6d1f9238824e 9140:ac0f082faa6c
    60             # This will have to be changed if we ever have to check
    60             # This will have to be changed if we ever have to check
    61             # for a function on Windows.
    61             # for a function on Windows.
    62             devnull = open('/dev/null', 'w')
    62             devnull = open('/dev/null', 'w')
    63             oldstderr = os.dup(sys.stderr.fileno())
    63             oldstderr = os.dup(sys.stderr.fileno())
    64             os.dup2(devnull.fileno(), sys.stderr.fileno())
    64             os.dup2(devnull.fileno(), sys.stderr.fileno())
    65             objects = cc.compile([fname])
    65             objects = cc.compile([fname], output_dir=tmpdir)
    66             cc.link_executable(objects, os.path.join(tmpdir, "a.out"))
    66             cc.link_executable(objects, os.path.join(tmpdir, "a.out"))
    67         except:
    67         except:
    68             return False
    68             return False
    69         return True
    69         return True
    70     finally:
    70     finally: