mirror of
https://github.com/clearlinux/official-images.git
synced 2026-08-26 15:35:49 +00:00
fa13be614b
This test validates that the Python images do not contain any pre-compiled `.pyc` or `.pyo` files in `/usr/local` (or `/opt`, for good measure). Ideally this would also include all of `/usr` (not just `/usr/local`) but then it would also have to filter out results that are from Debian packages (`python`'s default variants are `FROM buildpack-deps` which includes a fair amount of Python packages).
5 lines
105 B
Bash
Executable File
5 lines
105 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
find /usr/local /opt '(' -name '*.pyc' -o -name '*.pyo' ')' -print -exec false '{}' +
|