diff --git a/.circleci/config.yml b/.circleci/config.yml index af20484b..a75d34c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,6 +19,7 @@ jobs: name: Setup environment variables command: | echo 'export DESTDIR=$HOME/destdir' >> "$BASH_ENV" + echo 'export IS_CIRCLE_CI=1' >> "$BASH_ENV" # Download and install refpolicy headers for sepolgen tests - run: diff --git a/scripts/run-scan-build b/scripts/run-scan-build index ef07fefc..77e02ca9 100755 --- a/scripts/run-scan-build +++ b/scripts/run-scan-build @@ -24,7 +24,7 @@ export PATH="$DESTDIR/usr/sbin:$DESTDIR/usr/bin:$DESTDIR/sbin:$DESTDIR/bin:$PATH export PYTHONPATH="$DESTDIR$(${PYTHON:-python3} -c "from distutils.sysconfig import *;print(get_python_lib(prefix='/usr'))")" export RUBYLIB="$DESTDIR/$(${RUBY:-ruby} -e 'puts RbConfig::CONFIG["vendorlibdir"]'):$DESTDIR/$(${RUBY:-ruby} -e 'puts RbConfig::CONFIG["vendorarchdir"]')" -if [ -f /etc/debian_version ]; then +if [ -f /etc/debian_version ] && [ -z "${IS_CIRCLE_CI:-}" ] ; then export PYTHON_SETUP_ARGS='--install-layout=deb' fi