source: pyyaml/trunk/tests/test_build_ext.py @ 195

Revision 195, 361 bytes checked in by xi, 9 years ago (diff)

Add pyrex-based bindings for the libyaml scanner.

Line 
1
2
3def main():
4    import sys, os, distutils.util
5    build_lib = 'build/lib'
6    build_lib_ext = os.path.join('build', 'lib.%s-%s' % (distutils.util.get_platform(), sys.version[0:3]))
7    sys.path.insert(0, build_lib)
8    sys.path.insert(0, build_lib_ext)
9    import test_yaml_ext
10    test_yaml_ext.main('test_yaml_ext')
11
12if __name__ == '__main__':
13    main()
14
Note: See TracBrowser for help on using the repository browser.