Lines Matching refs:os
62 bn = os.path.basename(dirname)
93 sys.path.insert(1, os.path.dirname(__file__))
153 import os
194 result[os.path.join(self.install_dir, 'PyObjCTest')] = 1
195 for fn in os.listdir('PyObjCTest'):
196 result[os.path.join('PyObjCTest', fn)] = 1
197 result[os.path.join(self.install_dir, 'PyObjCTest', fn)] = 1
202 if os.path.isfile(executable):
206 for p in os.environ['PATH'].split(os.pathsep):
207 f = os.path.join(p, executable)
208 if os.path.isfile(f):
229 if os.path.exists(binfile):
230 os.unlink(binfile)
233 binfile = os.path.basename(binfile)
234 if os.path.exists(binfile):
235 os.unlink(binfile)
240 if 'CC' in os.environ:
247 if cc is not None and os.path.basename(cc).startswith('gcc'):
250 data = os.popen("'%s' --version 2>/dev/null"%(
262 cc = os.popen("/usr/bin/xcrun -find clang").read()
276 if env in vars and env not in os.environ:
290 include_root = os.path.join(self.build_temp, 'pyobjc-include')
291 if os.path.exists(include_root):
294 os.makedirs(include_root)
298 fp = open(os.path.join(include_root, fn), 'w')