Skip to content

Commit

Permalink
Generate protos before installing Python package (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
chester-leung authored Apr 8, 2021
1 parent 03934ff commit 96eb1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-package/setup.py
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@
except ValueError:
continue

print("Updating protos")
subprocess.run(["python3", "-m", "grpc_tools.protoc", "-I", "securexgboost/rpc/protos", "--python_out=securexgboost/rpc", "--grpc_python_out=securexgboost/rpc", "securexgboost/rpc/protos/remote.proto", "securexgboost/rpc/protos/ndarray.proto"])

print("Install libxgboost from: %s" % LIB_PATH)
# Please use setup_pip.py for generating and deploying pip installation
@@ -58,5 +60,3 @@
python_requires='>=3.4',
url='https://github.com/dmlc/xgboost')

print("Updating protos")
subprocess.run(["python3", "-m", "grpc_tools.protoc", "-I", "securexgboost/rpc/protos", "--python_out=securexgboost/rpc", "--grpc_python_out=securexgboost/rpc", "securexgboost/rpc/protos/remote.proto", "securexgboost/rpc/protos/ndarray.proto"])

0 comments on commit 96eb1a9

Please sign in to comment.