[meta] Remove the Python DSL

KILL THE SNAKE WITH FIRE.
This commit is contained in:
Benjamin Bouvier
2019-06-20 17:04:55 +02:00
parent 88307f693a
commit f29a26de14
75 changed files with 1 additions and 17405 deletions

View File

@@ -4,7 +4,6 @@ set -euo pipefail
# This is the top-level test script:
#
# - Check code formatting.
# - Perform checks on Python code.
# - Make a debug build.
# - Make a release build.
# - Run unit tests for all Rust crates (including the filetests)
@@ -13,10 +12,6 @@ set -euo pipefail
#
# All tests run by this script should be passing at all times.
# Disable generation of .pyc files because they cause trouble for vendoring
# scripts, and this is a build step that isn't run very often anyway.
export PYTHONDONTWRITEBYTECODE=1
# Repository top-level directory.
topdir=$(dirname "$0")
cd "$topdir"
@@ -40,20 +35,6 @@ else
echo "https://github.com/rust-lang-nursery/rustfmt for more information."
fi
# Check if any Python files have changed since we last checked them.
tsfile="$topdir/target/meta-checked"
meta_python="$topdir/cranelift-codegen/meta-python"
if [ -f "$tsfile" ]; then
needcheck=$(find "$meta_python" -name '*.py' -newer "$tsfile")
else
needcheck=yes
fi
if [ -n "$needcheck" ]; then
banner "Checking python source files"
"$meta_python/check.sh"
touch "$tsfile" || echo no target directory
fi
# Make sure the code builds in release mode.
banner "Rust release build"
cargo build --release