File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1690,7 +1690,12 @@ def build(self):
1690
1690
mx .ensure_dir_exists (os .path .join (self .subject .get_output_root (), "modules" ))
1691
1691
1692
1692
cwd = os .path .join (self .subject .get_output_root (), "mxbuild_temp" )
1693
- pycache_dir = os .path .join (self .subject .get_output_root (), "__pycache__" )
1693
+
1694
+ if os .path .exists ("/dev/null" ):
1695
+ pycache_dir = "/dev/null"
1696
+ else :
1697
+ pycache_dir = os .path .join (self .subject .get_output_root (), "__pycache__" )
1698
+
1694
1699
args = []
1695
1700
if mx ._opts .verbose :
1696
1701
args .append ("-v" )
@@ -1700,6 +1705,7 @@ def build(self):
1700
1705
1701
1706
args += ["--python.WithThread" ,
1702
1707
"--python.PyCachePrefix=" + pycache_dir ,
1708
+ "-B" ,
1703
1709
"-S" , os .path .join (self .src_dir () , "setup.py" ),
1704
1710
self .subject .get_output_root ()]
1705
1711
mx .ensure_dir_exists (cwd )
You can’t perform that action at this time.
0 commit comments