-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup_win32_ssl.py
36 lines (25 loc) · 1.1 KB
/
setup_win32_ssl.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
# vi:ts=4:et
# $Id: setup_win32_ssl.py,v 1.45 2008/09/09 17:40:34 kjetilja Exp $
import os, sys, string
assert sys.platform == "win32", "Only for building on Win32 with SSL and zlib"
CURL_DIR = r"c:\src\build\pycurl\curl-7.19.0-ssl"
OPENSSL_DIR = r"c:\src\build\pycurl\openssl-0.9.7g"
sys.argv.insert(1, "--curl-dir=" + CURL_DIR)
from setup import *
setup_args["name"] = "pycurl-ssl"
for l in ("libeay32.lib", "ssleay32.lib",):
ext.extra_objects.append(os.path.join(OPENSSL_DIR, "out32", l))
define_macros.append(('HAVE_CURL_SSL', 1))
define_macros.append(('HAVE_CURL_OPENSSL', 1))
pool = "\\" + r"pool\win32\vc6" + "\\"
if string.find(sys.version, "MSC v.1310") >= 0:
pool = "\\" + r"pool\win32\vc71" + "\\"
ext.extra_objects.append(r"c:\src\pool\zlib-1.2.2" + pool + "zlib.lib")
ext.extra_objects.append(r"c:\src\pool\c-ares-20050411" + pool + "ares.lib")
ext.extra_objects.append(r"c:\src\pool\libidn-0.5.15" + pool + "idn.lib")
if __name__ == "__main__":
for o in ext.extra_objects:
assert os.path.isfile(o), o
apply(setup, (), setup_args)