open README with utf-8 and add gcc-8 (#3867)

This commit is contained in:
Nikita Titov 2018-11-07 01:53:33 +03:00 committed by Philip Hyunsu Cho
parent 20d5abf919
commit 1bf4083dc6
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# pylint: disable=invalid-name, exec-used # pylint: disable=invalid-name, exec-used
"""Setup xgboost package.""" """Setup xgboost package."""
from __future__ import absolute_import from __future__ import absolute_import
import io
import sys import sys
import os import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
@ -31,7 +32,7 @@ print("Install libxgboost from: %s" % LIB_PATH)
setup(name='xgboost', setup(name='xgboost',
version=open(os.path.join(CURRENT_DIR, 'xgboost/VERSION')).read().strip(), version=open(os.path.join(CURRENT_DIR, 'xgboost/VERSION')).read().strip(),
description="XGBoost Python Package", 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=[ install_requires=[
'numpy', 'numpy',
'scipy', 'scipy',

View File

@ -25,6 +25,9 @@ if echo "${OSTYPE}" | grep -q "darwin"; then
elif which g++-7; then elif which g++-7; then
export CC=gcc-7 export CC=gcc-7
export CXX=g++-7 export CXX=g++-7
elif which g++-8; then
export CC=gcc-8
export CXX=g++-8
elif which clang++; then elif which clang++; then
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++