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