Repository navigation
[python-package] remove setup.cfg - #6624
Conversation
StrikerRUS
left a comment
There was a problem hiding this comment.
LGTM! Love such types of PRs! π
Just out of curiosity, did you checked the content of generated setup.cfg?
list of files (click me)
...
lightgbm-4.5.0.99/setup.cfg
Wow I hadn't even noticed that! Ha ok I was curious, so I checked. cmake -B build -S .
cmake --build build --target _lightgbm -j4
sh build-python.sh install --precompile
cd ./dist
tar -xvzf *.tar.gz
lightgbm-4.5.0.99/setup.cfgIt just contains this: [egg_info]
tag_build =
tag_date = 0Looks like that comes from somewhere around here in |
|
Thanks for checking this! Now we know the normal standard behaviour for |
|
This pull request has been automatically locked since there has not been any recent activity since it was closed. |
I don't think
python-package/setup.cfgserves any purpose in this project any more. This proposes removing it it.Notes for Reviewers
How I tested this
The configuration in
setup.cfgdoesn't affectscikit-build-corebased builds (see docs here), so I just tested the--precompileoption where asetuptoolsbuild backend is substituted in:https://github.com/microsoft/LightGBM/blob/a9df7f113f7e603ed06dcc04baf2bc55f28ba090/build-python.sh#L308-L316
cmake -B build -S . cmake --build build --target _lightgbm -j4 sh build-python.sh install --precompileSaw the unit tests pass
And the package contained the expected files:
tar -tf ./dist/*.tar.gzlist of files (click me)