You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Referring to comments here that editable installs are not supported, does that mean running ./build-python.sh install every time changes are made to the original python-package? Is there a better way?
The text was updated successfully, but these errors were encountered:
Thanks for using LightGBM, and taking the time to contribute!
Yes, as of now editable installs are not exactly supported (not with e.g. pip install -e). If you are developing changes that only change Python code, build the C++ library:
# build the C++ library one time
rm -rf ./build
cmake -B build -S .
cmake --build build --target _lightgbm -j4
Then every time you change the Python code, re-install the library using the --precompile flag.
sh build-python.sh install --precompile
That'll be much faster than just build.python.sh install, because it won't re-compile the shared library.
I know we need better documentation on getting started here. In the absence of that, please feel free to keep posting questions here!
But I'm going to close this specific issue... to avoid fragmenting the conversation, can you please ask additional questions on this existing discussion thread about the same topic?
Hi, I would like to contribute to #4996 but I can't find good sources on what is the best workflow to install and work on the python package
My steps have been the following:
python-package
using./build-python.sh install
Referring to comments here that editable installs are not supported, does that mean running
./build-python.sh install
every time changes are made to the originalpython-package
? Is there a better way?The text was updated successfully, but these errors were encountered: