1
0
Fork 0
arangodb/3rdParty/iresearch/python/swig/setup.py.in

36 lines
893 B
Python

import setuptools.command.install
import shutil
from distutils.sysconfig import get_python_lib
class CompiledLibInstall(setuptools.command.install.install):
"""
Specialized install to install to python libs
"""
def run(self):
"""
Run method called by setup
:return:
"""
# Get filenames from CMake variable
filenames = '${PYTHON_INSTALL_FILES}'.split(';')
# Directory to install to
install_dir = get_python_lib()
# Install files
[shutil.copy(filename, install_dir) for filename in filenames]
if __name__ == '__main__':
setuptools.setup(
name='pyresearch',
version='1.0.0-dev',
packages=['pyresearch'],
license='Apache License 2.0',
author='gnusi',
author_email='andrey@arangodb.com',
cmdclass={'install': CompiledLibInstall}
)