-
Notifications
You must be signed in to change notification settings - Fork 38
Refactoring and fixing build #22
Refactoring and fixing build #22
Conversation
Co-authored-by: dongxuy04 <[email protected]>
@dongxuy04 thanks for catching that cut&paste error |
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.
found a small issue but other than that it LGTM
build.sh
Outdated
--compile-cmd | ||
--clean | ||
-h | ||
--help" |
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.
I think the closing quote needs to be on a new line by itself (see feedback below)
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.
fixed
build.sh
Outdated
@@ -94,29 +140,62 @@ if (( ${NUMARGS} != 0 )); then | |||
# Check for cmake args | |||
cmakeArgs | |||
for a in ${ARGS}; do | |||
if ! (echo " ${VALIDARGS} " | grep -q " ${a} "); then | |||
if ! (echo " ${VALIDARGS} " | grep -q "^[[:blank:]]*${a}$"); then |
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.
There's a slight bug with the change above where the values for VALIDARGS
are one-per-line. I tried this locally and the last arg in VALIDARGS
is no longer recognized:
~$ ./build.sh --help
Invalid option: --help
I think this just needs to have the closing quote for --help
where VALIDARGS
is set above be on a separate line. Using the new grep pattern, you can also drop the spaces around ${VALIDARGS}
:
if ! (echo " ${VALIDARGS} " | grep -q "^[[:blank:]]*${a}$"); then | |
if ! (echo "${VALIDARGS}" | grep -q "^[[:blank:]]*${a}$"); then |
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.
fixed
build.sh
Outdated
echo "Invalid option: ${a}" | ||
exit 1 | ||
fi | ||
echo " args are ${a} " |
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.
Should this debug print be removed?
build.sh
Outdated
# setup.py and cmake reference an env var LIBWHOLEGRAPH_DIR to find the | ||
# libwholegraph package (cmake). | ||
# If not set by the user, set it to LIBWHOLEGRAPH_BUILD_DIR | ||
LIBWHOLEGRAPH_DIR=${LIBWHOLEGRAPH_DIR:=${LIBWHOLEGRAPH_BUILD_DIR}} | ||
if ! hasArg --compile-cmd; then | ||
cd ${REPODIR}/pylibwholegraph | ||
cd ${REPODIR}/python/pylibwholegraph | ||
echo "Changed to: ${PWD} and ${PYTHON}" |
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.
Should this debug print be removed?
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.
yep, removed.
LGTM, thanks! |
Do not be scared by the large number of files. I moved directories and it includes all the files in those directories.
Only files changed
Moved some folders around to better follow RAPIDS.
Changes some build commons to match other RAPIDS so that arguments are consistent
updated the build process (cmake) for the new paths/folders
Added an empty CHANGELOG file
The next PR will address docs, so ignore that part of the build script