From 0798683ef94a8aa4bb1f6b6adedab7422efdcf70 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Thu, 24 Jan 2019 17:54:57 -0600 Subject: [PATCH] Pylint CI: Use PROJECT_INSTALL_FLAGS to build in editable mode --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3d622b7b..58c1ed2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -257,6 +257,10 @@ Pylint: script: - EXTRA_INSTALL="pybind11 numpy mako" - py_version=3.6 + - # After installation, PyOpenCL cannot be used from the source directory due + - # to package shadowing. To work around this, build in editable mode so there + - # is only one copy of everything. + - PROJECT_INSTALL_FLAGS="--editable" - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh - ". ./prepare-and-run-pylint.sh pyopencl test/test_*.py" tags: -- GitLab