-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python] migrate to pathlib in setup.py and use absolute()
on paths first
#4444
Conversation
131dc7a
to
97bc46f
Compare
770688c
to
a4b6b87
Compare
rmtree(build_dir, ignore_errors=True) | ||
build_dir.mkdir(parents=True) | ||
original_dir = Path.cwd() | ||
chdir(build_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, we have to chdir
due to old CMake doesn't support specifying building directory (I don't want to use undocumented flag):
https://stackoverflow.com/a/24435795
https://stackoverflow.com/a/20611964
cmake [<options>] -S <path-to-source> -B <path-to-build>
https://cmake.org/cmake/help/latest/manual/cmake.1.html#synopsis
and no such possibility in CMake < 3.13
https://cmake.org/cmake/help/v3.12/manual/cmake.1.html#synopsis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for calling this out, makes sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks!
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Contributes to #4416.