Creating pypi package - 50onRed/xgboost GitHub Wiki

  1. Launch a DataBricks cluster with 1 worker node and be sure to enable SSH access
  2. SSH into the cluster
  3. Clone this repository with the command git clone --recursive https://github.com/50onRed/xgboost.git
  4. Update apt with sudo apt-get update
  5. Install cmake and pip3 sudo apt-get install -y python3-pip cmake
  6. cd into the xgboost folder
  7. Edit python-package/xgboost/VERSION to reflect the current version of XGBoost you are building. This will be referenced from the setup.py file so it must be a new version or pypi will not accept it
  8. Run make pippack
  9. cd into xgboost-python folder
  10. Run sh prep_pip.sh
  11. Run sudo pip3 install twine
  12. Run twine upload dist/redspark-xgboost-{VERSION}.tar.gz where VERSION is replaced with the current build version
  13. Enjoy!