File size: 702 Bytes
2abfccb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from setuptools import setup
from Cython.Build import cythonize
from distutils.extension import Extension
from Cython.Distutils import build_ext
from glob import glob
from os.path import basename

include_dirs = glob('aws-sdk-cpp/aws-cpp-sdk-*/include')
libraries = [':{0}'.format(basename(i)) for i in glob('libs/libaws-*.so*')]

setup(
    cmdclass={'build_ext': build_ext},
    include_dirs=include_dirs,
    ext_modules=[
        Extension(
            'pys3client',
            ['pys3client.pyx', 's3client.cpp'],
            language="c++",
            libraries=libraries,
            # extra_compile_args=["-O3"],
            extra_link_args=["-Wl,-rpath,./libs", "-L./libs"]
        )
    ]
)