python package refactor into python-package

This commit is contained in:
tqchen
2015-07-30 22:04:45 -07:00
parent f6fed76e7e
commit c2fec29bfa
13 changed files with 87 additions and 677 deletions

21
python-package/setup.py Normal file
View File

@@ -0,0 +1,21 @@
# pylint: disable=invalid-name
"""Setup xgboost package."""
from __future__ import absolute_import
import sys
from setuptools import setup
sys.path.insert(0, '.')
import xgboost
LIB_PATH = xgboost.core.find_lib_path()
setup(name='xgboost',
version=xgboost.__version__,
description=xgboost.__doc__,
install_requires=[
'numpy',
'scipy',
],
zip_safe=False,
packages=['xgboost'],
data_files=[('xgboost', [LIB_PATH[0]])],
url='https://github.com/dmlc/xgboost')