[Pythonmac-SIG] Another build question: ssl?
Andrew Kuchling
akuchlin@mems-exchange.org
Thu, 21 Nov 2002 15:25:46 -0500
On Thu, Nov 21, 2002 at 11:20:15AM -0800, Dan Wolfe wrote:
>Below is a diff that fixes the problem simply by adding another check
>for a dylib file and returning the results if it exists.
I think a better fix would be to make the setup.py function use the
compiler method of the same name, by putting this in setup.py instead
of the existing function:
def find_library_file(compiler, libname, std_dirs, paths):
result = compiler.find_library_file(std_dirs + paths, libname)
if result is None:
return None
# Check whether the found file is in one of the additional directories
for p in paths:
# Ensure path ends with path separator
if not p.endswith(os.sep):
p += os.sep
if result.startswith(p):
return [p]
return []
Otherwise a similar bug can show up again down the road if there's a
fourth kind of shared library. I can't get to my Mac at the moment;
anyone want to test this? (Otherwise I'll test it this evening...)
--amk (www.amk.ca)
"So what's so terrible about Perivale?"
"Nothing ever happens here."
-- The Doctor and Ace, in "Survival"