forked from mfkiwl/nassl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_win64.py
More file actions
executable file
·23 lines (16 loc) · 908 Bytes
/
setup_win64.py
File metadata and controls
executable file
·23 lines (16 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from distutils.core import setup, Extension
from setup_config import NASSL_SETUP, NASSL_EXT_SETUP
from buildAll_win64 import OPENSSL_INSTALL_DIR, ZLIB_LIB_DIR
# Add arguments specific to Win64 builds
win64_ext_args = NASSL_EXT_SETUP.copy()
# Python 64 is expected to be in C:\Python27
# Visual Studio is expected to be in the default folder
win64_ext_args.update({
'include_dirs' : [OPENSSL_INSTALL_DIR+'\\include', 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\include'],
'library_dirs' : [OPENSSL_INSTALL_DIR + '\\lib', 'C:\\Python27\\libs\\', 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\lib\\amd64' ],
'libraries' : ['ssleay32', 'libeay32', 'user32', 'kernel32', 'Gdi32', 'Advapi32', 'Ws2_32'],
'extra_objects' : [ZLIB_LIB_DIR]})
win64_setup = NASSL_SETUP.copy()
win64_setup.update({
'ext_modules' : [Extension(**win64_ext_args)]})
setup(**win64_setup)