1import py 2import sys 3 4udir = py.path.local.make_numbered_dir(prefix = 'ffi-') 5 6 7# Windows-only workaround for some configurations: see 8# https://bugs.python.org/issue23246 (Python 2.7.9) 9if sys.platform == 'win32': 10 try: 11 import setuptools 12 except ImportError: 13 pass 14