equal
deleted
inserted
replaced
123 |
123 |
124 # simplified version of distutils.ccompiler.CCompiler.has_function |
124 # simplified version of distutils.ccompiler.CCompiler.has_function |
125 # that actually removes its temporary files. |
125 # that actually removes its temporary files. |
126 def hasfunction(cc, funcname): |
126 def hasfunction(cc, funcname): |
127 code = 'int main(void) { %s(); }\n' % funcname |
127 code = 'int main(void) { %s(); }\n' % funcname |
|
128 return cancompile(cc, code) |
|
129 |
|
130 def hasheader(cc, headername): |
|
131 code = '#include <%s>\nint main(void) { return 0; }\n' % headername |
128 return cancompile(cc, code) |
132 return cancompile(cc, code) |
129 |
133 |
130 # py2exe needs to be installed to work |
134 # py2exe needs to be installed to work |
131 try: |
135 try: |
132 import py2exe |
136 import py2exe |