예제 #1
0
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)
예제 #2
0
파일: setup_unix.py 프로젝트: craSH/nassl
#!/usr/bin/env python2.7
from distutils.core import setup, Extension
from sys import platform

from setup_config import NASSL_SETUP, NASSL_EXT_SETUP
from buildAll_config import OPENSSL_DIR, ZLIB_DIR
from buildAll_unix import OPENSSL_INSTALL_DIR


extra_compile_args = ['-Wall', '-Wno-deprecated-declarations']

if platform == 'darwin': # Workaround for Clang 3.4
    # add as the element of an array rather than a string, py 2.7.5 
    extra_compile_args += ['-Wno-error=unused-command-line-argument-hard-error-in-future']


# Add arguments specific to Unix builds
unix_ext_args = NASSL_EXT_SETUP.copy()
unix_ext_args.update({
    'include_dirs' : [OPENSSL_INSTALL_DIR + '/include'],
    'extra_compile_args' : extra_compile_args,
    'library_dirs' : [OPENSSL_DIR, ZLIB_DIR],
    'libraries' : ['ssl', 'crypto']})


unix_setup = NASSL_SETUP.copy()
unix_setup.update({
    'ext_modules' : [Extension(**unix_ext_args)] })

setup(**unix_setup)
예제 #3
0
from distutils.core import setup, Extension

from setup_config import NASSL_SETUP, NASSL_EXT_SETUP
from buildAll_win32 import OPENSSL_INSTALL_DIR, ZLIB_LIB_DIR


# Add arguments specific to Win32 builds
win32_ext_args = NASSL_EXT_SETUP.copy()

# Python 32 is expected to be in C:\Python27_32
# Visual Studio is expected to be in the default folder
win32_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_32\\libs\\', 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\lib' ],
    'libraries' : ['ssleay32', 'libeay32', 'user32', 'kernel32', 'Gdi32', 'Advapi32', 'Ws2_32'],
	'extra_objects' : [ZLIB_LIB_DIR]})

win32_setup = NASSL_SETUP.copy()
win32_setup.update({
    'ext_modules' : [Extension(**win32_ext_args)] })


setup(**win32_setup)
예제 #4
0
from distutils.core import setup, Extension

from setup_config import NASSL_SETUP, NASSL_EXT_SETUP
from buildAll_win32 import OPENSSL_INSTALL_DIR, ZLIB_LIB_DIR

# Add arguments specific to Win32 builds
win32_ext_args = NASSL_EXT_SETUP.copy()

# Python 32 is expected to be in C:\Python27_32
# Visual Studio is expected to be in the default folder
win32_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_32\\libs\\',
        'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\lib'
    ],
    'libraries': [
        'ssleay32', 'libeay32', 'user32', 'kernel32', 'Gdi32', 'Advapi32',
        'Ws2_32'
    ],
    'extra_objects': [ZLIB_LIB_DIR]
})

win32_setup = NASSL_SETUP.copy()
win32_setup.update({'ext_modules': [Extension(**win32_ext_args)]})

setup(**win32_setup)
예제 #5
0
from distutils.core import setup, Extension
from sys import platform

from setup_config import NASSL_SETUP, NASSL_EXT_SETUP
from buildAll_config import OPENSSL_DIR, ZLIB_DIR
from buildAll_unix import OPENSSL_INSTALL_DIR

extra_compile_args = ['-Wall', '-Wno-deprecated-declarations']

if platform == 'darwin':  # Workaround for Clang 3.4
    # add as the element of an array rather than a string, py 2.7.5
    extra_compile_args += [
        '-Wno-error=unused-command-line-argument-hard-error-in-future'
    ]

# Add arguments specific to Unix builds
unix_ext_args = NASSL_EXT_SETUP.copy()
unix_ext_args.update({
    'include_dirs': [OPENSSL_INSTALL_DIR + '/include'],
    'extra_compile_args': extra_compile_args,
    'library_dirs': [OPENSSL_DIR, ZLIB_DIR],
    'libraries': ['ssl', 'z', 'crypto']
})

unix_setup = NASSL_SETUP.copy()
unix_setup.update({'ext_modules': [Extension(**unix_ext_args)]})

setup(**unix_setup)
예제 #6
0
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)