File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,17 @@ fn generate_properties(engine: &str) {
53
53
}
54
54
}
55
55
56
- // `cargo publish` isn't happy with the `__pycache__` files that are created
57
- // when we run the property generator.
58
- //
59
- // TODO(mrobinson): Is this happening because of how we run this script? It
60
- // would be better to ensure are just placed in the output directory.
61
- env:: set_var ( "PYTHONDONTWRITEBYTECODE" , "1" ) ;
62
-
63
56
let script = Path :: new ( & env:: var_os ( "CARGO_MANIFEST_DIR" ) . unwrap ( ) )
64
57
. join ( "properties" )
65
58
. join ( "build.py" ) ;
66
59
67
60
let status = Command :: new ( & * PYTHON )
61
+ // `cargo publish` isn't happy with the `__pycache__` files that are created
62
+ // when we run the property generator.
63
+ //
64
+ // TODO(mrobinson): Is this happening because of how we run this script? It
65
+ // would be better to ensure are just placed in the output directory.
66
+ . env ( "PYTHONDONTWRITEBYTECODE" , "1" )
68
67
. arg ( & script)
69
68
. arg ( engine)
70
69
. arg ( "style-crate" )
Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ fn generate_atoms() {
369
369
. join ( "regen_atoms.py" ) ;
370
370
println ! ( "cargo:rerun-if-changed={}" , script. display( ) ) ;
371
371
let status = Command :: new ( & * PYTHON )
372
+ . env ( "PYTHONDONTWRITEBYTECODE" , "1" )
372
373
. arg ( & script)
373
374
. arg ( DISTDIR_PATH . as_os_str ( ) )
374
375
. arg ( OUTDIR_PATH . as_os_str ( ) )
You can’t perform that action at this time.
0 commit comments