From dd3ceaa8a553d837ca7f579259b0061fcb900a64 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Wed, 27 Jul 2022 11:10:39 +0100 Subject: [PATCH] add cargo:rerun-if-changed to build.rs, ref #176 (#195) --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 4b43e8c235..c38cfff3e2 100644 --- a/build.rs +++ b/build.rs @@ -3,6 +3,8 @@ use std::process::Command; use std::str::from_utf8; fn generate_self_schema() { + println!("cargo:rerun-if-changed=pydantic_core/_types.py"); + println!("cargo:rerun-if-changed=generate_self_schema.py"); if Path::new("./src/self_schema.py").exists() && option_env!("DEBIAN_FRONTEND") == Some("noninteractive") { // self_schema.py already exists and DEBIAN_FRONTEND indicates we're in a maturin build, // skip running generate_self_schema.py