From 2210f79928e87c40f972dde3857bc995c899a6e6 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sun, 8 Feb 2009 16:54:28 -0500 Subject: Work around a gross distutils bug - forward slashes cause the path to get mangled incorrectly --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 6eb9508..b4e858a 100755 --- a/setup.py +++ b/setup.py @@ -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") -- cgit v1.2.1