open README with utf-8 and add gcc-8 (#3867)
This commit is contained in:
parent
20d5abf919
commit
1bf4083dc6
@ -1,6 +1,7 @@
|
||||
# pylint: disable=invalid-name, exec-used
|
||||
"""Setup xgboost package."""
|
||||
from __future__ import absolute_import
|
||||
import io
|
||||
import sys
|
||||
import os
|
||||
from setuptools import setup, find_packages
|
||||
@ -31,7 +32,7 @@ print("Install libxgboost from: %s" % LIB_PATH)
|
||||
setup(name='xgboost',
|
||||
version=open(os.path.join(CURRENT_DIR, 'xgboost/VERSION')).read().strip(),
|
||||
description="XGBoost Python Package",
|
||||
long_description=open(os.path.join(CURRENT_DIR, 'README.rst')).read(),
|
||||
long_description=io.open(os.path.join(CURRENT_DIR, 'README.rst'), encoding='utf-8').read(),
|
||||
install_requires=[
|
||||
'numpy',
|
||||
'scipy',
|
||||
|
||||
@ -25,6 +25,9 @@ if echo "${OSTYPE}" | grep -q "darwin"; then
|
||||
elif which g++-7; then
|
||||
export CC=gcc-7
|
||||
export CXX=g++-7
|
||||
elif which g++-8; then
|
||||
export CC=gcc-8
|
||||
export CXX=g++-8
|
||||
elif which clang++; then
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user