From 025f9f17ce7f49a32d6ff51973bd5be84dd9c230 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Wed, 23 Jan 2019 20:55:53 -0600 Subject: [PATCH 1/2] Build projects in editable mode Building in-place allows for pylint to analyze the module code without problems that arise from name shadowing. See: pyopencl!68 --- build-py-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-py-project.sh b/build-py-project.sh index b963ef7..574f572 100644 --- a/build-py-project.sh +++ b/build-py-project.sh @@ -112,4 +112,4 @@ if test -f $REQUIREMENTS_TXT; then $PIP install -r $REQUIREMENTS_TXT fi -$PIP install . +$PIP install --editable . -- GitLab From a3bf1d25e33bee09b740888a89d7954bd209e693 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Thu, 24 Jan 2019 12:57:24 -0600 Subject: [PATCH 2/2] Add a PROJECT_INSTALL_FLAGS variable This lets editable mode be used by the build as an option. --- build-py-project.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-py-project.sh b/build-py-project.sh index 574f572..4d225d3 100644 --- a/build-py-project.sh +++ b/build-py-project.sh @@ -3,6 +3,7 @@ echo "Current directory: $(pwd)" echo "Python executable: ${PY_EXE}" echo "PYOPENCL_TEST: ${PYOPENCL_TEST}" echo "PYTEST_ADDOPTS: ${PYTEST_ADDOPTS}" +echo "PROJECT_INSTALL_FLAGS: ${PROJECT_INSTALL_FLAGS}" echo "git revision: $(git rev-parse --short HEAD)" echo "git status:" git status -s @@ -112,4 +113,4 @@ if test -f $REQUIREMENTS_TXT; then $PIP install -r $REQUIREMENTS_TXT fi -$PIP install --editable . +$PIP install $PROJECT_INSTALL_FLAGS . -- GitLab