bf926ed
#!/usr/bin/python3.3m
bf926ed
# -*- python -*-
bf926ed
303eacc
import sys
303eacc
import subprocess
303eacc
ver = sys.version[:3]
303eacc
arch = subprocess.check_output('uname -m'.split()).decode("utf-8").rstrip()
303eacc
call = ['python{ver}m-{arch}-config'.format(ver=ver, arch=arch)] + sys.argv[1:]
303eacc
retval = subprocess.call(call)
303eacc
if retval == 127:
303eacc
    print('Could not find python{ver}m-{arch}-config. Look around to see available arches.'.format(ver=ver, arch=arch), file=sys.stderr)