Weiyun1025's picture
Upload folder using huggingface_hub
2abfccb verified
raw
history blame contribute delete
841 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')
# print(include_dirs)
# include_dirs = ["~/anaconda3/include"]
# include_dirs=["/home/PJLAB/huipeng/anaconda3/include"]
libraries = [':{0}'.format(basename(i)) for i in glob('libs/libaws-*.so*')]
# print(libraries)
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"]
)
]
)