Disable creation of .pyc files.
Cretonne's python scripts aren't run very often, so there's little benefit in creating .pyc files. And the .pyc files cause trouble for some vendoring scripts. So disable them.
This commit is contained in:
@@ -11,6 +11,10 @@ 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.
|
||||
cd $(dirname "$0")
|
||||
topdir=$(pwd)
|
||||
|
||||
@@ -59,8 +59,11 @@ fn main() {
|
||||
let build_script = meta_dir.join("build.py");
|
||||
|
||||
// Launch build script with Python. We'll just find python in the path.
|
||||
// Use -B to disable .pyc files, because they cause trouble for vendoring
|
||||
// scripts, and this is a build step that isn't run very often anyway.
|
||||
let status = process::Command::new("python")
|
||||
.current_dir(crate_dir)
|
||||
.arg("-B")
|
||||
.arg(build_script)
|
||||
.arg("--out-dir")
|
||||
.arg(out_dir)
|
||||
|
||||
Reference in New Issue
Block a user