diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-01-20 18:22:02 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2020-01-20 18:24:26 +0300 |
commit | b830a6faa3f83814b795fdca41bb73b90e48ac68 (patch) | |
tree | 41d5744cfe4383af733bb10c4d07e4c7460ed337 /docker | |
parent | 66105e8a3a8cfc54410d57a48eb0bfc81715417f (diff) |
Rewrite invalid imports checker to Python
Makes it consistent with other checkers we already have
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/build.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/docker/build.sh b/docker/build.sh index 9bff78c2a3..a500663c64 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -13,18 +13,7 @@ export PKG_CONFIG_PATH="${CURA_BUILD_ENV_PATH}/lib/pkgconfig:${PKG_CONFIG_PATH}" cd "${PROJECT_DIR}" -# Check for plugins.* import statements. These imports may work when running from source, -# but will fail in some build types (linux and mac) -GREP_OUTPUT=$(grep -Ern "^\s*(from plugins|import plugins)" --include \*.py "${PROJECT_DIR}" || true) -echo "$GREP_OUTPUT" -if [ -z "$GREP_OUTPUT" ] -then - echo "invalid imports checker: OK" -else - echo "error: sources contain invalid imports. Use relative imports when referencing plugin source files" - exit 1 -fi # # Clone Uranium and set PYTHONPATH first |