update with comments on PR #450, fixed styles and updated CHANGES and CONTRIBUTORS
This commit is contained in:
parent
70e230815b
commit
db444c4a08
@ -44,3 +44,4 @@ on going at master
|
||||
* Java api is ready for use
|
||||
* Added more test cases and continuous integration to make each build more robust
|
||||
* Improvements in sklearn compatible module
|
||||
* Added pip installation functionality for python module
|
||||
|
||||
@ -46,3 +46,5 @@ List of Contributors
|
||||
* [Yen-Ying Lee](https://github.com/white1033)
|
||||
* [Masaaki Horikoshi](https://github.com/sinhrks)
|
||||
- Masaaki is the initial creator of xgboost python plotting module.
|
||||
* [Hongliang Liu](https://github.com/phunterlau)
|
||||
- Hongliang is the maintainer of xgboost python PyPI package for pip installation.
|
||||
|
||||
@ -2,12 +2,12 @@
|
||||
"""Setup xgboost package."""
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
from setuptools import setup,find_packages
|
||||
from setuptools import setup, find_packages
|
||||
import subprocess
|
||||
sys.path.insert(0, '.')
|
||||
#build on the fly
|
||||
|
||||
build_sh = subprocess.Popen(['sh','xgboost/build-python.sh'])
|
||||
build_sh = subprocess.Popen(['sh', 'xgboost/build-python.sh'])
|
||||
build_sh.wait()
|
||||
output = build_sh.communicate()
|
||||
print output
|
||||
@ -29,14 +29,16 @@ setup(name='xgboost',
|
||||
'numpy',
|
||||
'scipy',
|
||||
],
|
||||
maintainer = 'Hongliang Liu',
|
||||
maintainer_email = 'phunter.lau@gmail.com',
|
||||
maintainer='Hongliang Liu',
|
||||
maintainer_email='phunter.lau@gmail.com',
|
||||
zip_safe=False,
|
||||
packages = find_packages(),
|
||||
#package_dir = {'':'xgboost'}, #don't need this and don't use this, give everything to MANIFEST.in
|
||||
packages=find_packages(),
|
||||
#don't need this and don't use this, give everything to MANIFEST.in
|
||||
#package_dir = {'':'xgboost'},
|
||||
#package_data = {'': ['*.txt','*.md','*.sh'],
|
||||
# }
|
||||
include_package_data=True, #this will use MANIFEST.in during install where we specify additional files, this is the golden line
|
||||
data_files=[('xgboost',LIB_PATH),
|
||||
],
|
||||
#this will use MANIFEST.in during install where we specify additional files,
|
||||
#this is the golden line
|
||||
include_package_data=True,
|
||||
data_files=[('xgboost', LIB_PATH)],
|
||||
url='https://github.com/dmlc/xgboost')
|
||||
|
||||
@ -40,7 +40,8 @@ def find_lib_path():
|
||||
"""
|
||||
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
|
||||
#make pythonpack hack: copy this directory one level upper for setup.py
|
||||
dll_path = [curr_path, os.path.join(curr_path, '../../wrapper/'),os.path.join(curr_path, './wrapper/')]
|
||||
dll_path = [curr_path, os.path.join(curr_path, '../../wrapper/')
|
||||
, os.path.join(curr_path, './wrapper/')]
|
||||
if os.name == 'nt':
|
||||
if platform.architecture()[0] == '64bit':
|
||||
dll_path.append(os.path.join(curr_path, '../../windows/x64/Release/'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user