Weiyun1025's picture
Upload folder using huggingface_hub
2abfccb verified
raw
history blame contribute delete
702 Bytes
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"]
)
]
)