text: # coding: utf-8
  # pylint: disable=invalid-name, exec-used
  """Setup lightgbm package."""
  from __future__ import absolute_import
  
  import os
  import sys
  
  from setuptools import find_packages, setup
  
  sys.path.insert(0, '.')
  
  CURRENT_DIR = os.path.dirname(__file__)
  
  libpath_py = os.path.join(CURRENT_DIR, 'lightgbm/libpath.py')
  libpath = {'__file__': libpath_py}
  exec(compile(open(libpath_py, "rb").read(), libpath_py, 'exec'), libpath, libpath)
  
  LIB_PATH = [os.path.relpath(path, CURRENT_DIR) for path in libpath['find_lib_path']()]
  print("Install lib_lightgbm from: %s" % LIB_PATH)
  
  
  setup(name='lightgbm',
        version=0.1,
        description="LightGBM Python Package",
        install_requires=[
            'numpy',
            'scipy',
        ],
        maintainer='Guolin Ke',
        maintainer_email='guolin.ke@microsoft.com',
        zip_safe=False,
        packages=find_packages(),
        include_package_data=True,
        data_files=[('lightgbm', LIB_PATH)],
        url='https://github.com/Microsoft/LightGBM')
  