diff options
author | Jean-Paul Calderone <exarkun@divmod.com> | 2009-02-08 16:54:28 -0500 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@divmod.com> | 2009-02-08 16:54:28 -0500 |
commit | 2210f79928e87c40f972dde3857bc995c899a6e6 (patch) | |
tree | 0047d2d044d5c7058f7fbd0bbc6ef62736e62582 | |
parent | 5a1bf38c3645c891591e129c115e1dbd936a2bc6 (diff) | |
download | pyopenssl-2210f79928e87c40f972dde3857bc995c899a6e6.tar.gz |
Work around a gross distutils bug - forward slashes cause the path to get mangled incorrectly
-rwxr-xr-x | setup.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -44,9 +44,10 @@ LibraryDirs = None if os.name == 'nt' or sys.platform == 'win32': Libraries = ['eay32', 'Ws2_32'] # Try to find it... - for path in ["C:/Python25/libs/", "C:/Python26/libs/", "C:/OpenSSL/lib/MinGW/"]: - if os.path.exists(os.path.join(path, "ssleay32.a")): - ExtraObjects = [os.path.join(path, "ssleay32.a")] + for path in ["C:\\Python25\\libs\\", "C:\\Python26\\libs\\", "C:\\OpenSSL\\lib\\MinGW\\"]: + ssleay32 = os.path.join(path, "ssleay32.a") + if os.path.exists(ssleay32): + ExtraObjects = [ssleay32] break else: raise SystemExit("Cannot find ssleay32.a, aborting") |