-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1142 from sinhrks/flake8
Enable flake8 for Python
- Loading branch information
Showing
19 changed files
with
291 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
import sys | ||
import os | ||
from setuptools import setup, find_packages | ||
#import subprocess | ||
# import subprocess | ||
sys.path.insert(0, '.') | ||
|
||
CURRENT_DIR = os.path.dirname(__file__) | ||
|
@@ -18,12 +18,12 @@ | |
|
||
LIB_PATH = libpath['find_lib_path']() | ||
print("Install libxgboost from: %s" % LIB_PATH) | ||
#Please use setup_pip.py for generating and deploying pip installation | ||
#detailed instruction in setup_pip.py | ||
# Please use setup_pip.py for generating and deploying pip installation | ||
# detailed instruction in setup_pip.py | ||
setup(name='xgboost', | ||
version=open(os.path.join(CURRENT_DIR, 'xgboost/VERSION')).read().strip(), | ||
#version='0.4a23', | ||
description = "XGBoost Python Package", | ||
# version='0.4a23', | ||
description="XGBoost Python Package", | ||
long_description=open(os.path.join(CURRENT_DIR, 'README.rst')).read(), | ||
install_requires=[ | ||
'numpy', | ||
|
@@ -33,8 +33,8 @@ | |
maintainer_email='[email protected]', | ||
zip_safe=False, | ||
packages=find_packages(), | ||
#this will use MANIFEST.in during install where we specify additional files, | ||
#this is the golden line | ||
# 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,14 @@ | |
import sys | ||
import os | ||
from setuptools import setup, find_packages | ||
#import subprocess | ||
# import subprocess | ||
sys.path.insert(0, '.') | ||
|
||
#this script is for packing and shipping pip installation | ||
#it builds xgboost code on the fly and packs for pip | ||
#please don't use this file for installing from github | ||
# this script is for packing and shipping pip installation | ||
# it builds xgboost code on the fly and packs for pip | ||
# please don't use this file for installing from github | ||
|
||
if os.name != 'nt': #if not windows, compile and install | ||
if os.name != 'nt': # if not windows, compile and install | ||
os.system('sh ./xgboost/build-python.sh') | ||
else: | ||
print('Windows users please use github installation.') | ||
|
@@ -28,12 +28,12 @@ | |
|
||
LIB_PATH = libpath['find_lib_path']() | ||
|
||
#to deploy to pip, please use | ||
#make pythonpack | ||
#python setup.py register sdist upload | ||
#and be sure to test it firstly using "python setup.py register sdist upload -r pypitest" | ||
# to deploy to pip, please use | ||
# make pythonpack | ||
# python setup.py register sdist upload | ||
# and be sure to test it firstly using "python setup.py register sdist upload -r pypitest" | ||
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(), | ||
version='0.4a30', | ||
description=open(os.path.join(CURRENT_DIR, 'README.rst')).read(), | ||
install_requires=[ | ||
|
@@ -44,15 +44,15 @@ | |
maintainer_email='[email protected]', | ||
zip_safe=False, | ||
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'], | ||
# don't need this and don't use this, give everything to MANIFEST.in | ||
# package_dir = {'':'xgboost'}, | ||
# package_data = {'': ['*.txt','*.md','*.sh'], | ||
# } | ||
#this will use MANIFEST.in during install where we specify additional files, | ||
#this is the golden line | ||
# this will use MANIFEST.in during install where we specify additional files, | ||
# this is the golden line | ||
include_package_data=True, | ||
#!!! don't use data_files for creating pip installation, | ||
#otherwise install_data process will copy it to | ||
#root directory for some machines, and cause confusions on building | ||
#data_files=[('xgboost', LIB_PATH)], | ||
# !!! don't use data_files for creating pip installation, | ||
# otherwise install_data process will copy it to | ||
# root directory for some machines, and cause confusions on building | ||
# data_files=[('xgboost', LIB_PATH)], | ||
url='https://github.com/dmlc/xgboost') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.