diff --git a/Modules/main.c b/Modules/main.c index 6904e3f76e8911..eb197c7471cdbf 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -51,6 +51,7 @@ pymain_init(const _PyArgv *args) PyConfig config; PyConfig_InitPythonConfig(&config); + config.pathconfig_warnings = 0; /* pass NULL as the config: config is read from command line arguments, environment variables, configuration files */ diff --git a/build.zig b/build.zig index c7fc831039a7f9..c1d634ea770c06 100644 --- a/build.zig +++ b/build.zig @@ -814,7 +814,7 @@ pub fn build(b: *std.Build) void { "-fvisibility=hidden", "-DPy_BUILD_CORE", - "-DPYTHONPATH=\"\"", + std.fmt.allocPrint(b.allocator, "-DPYTHONPATH=\"{s}\"", .{b.path("Lib").getPath(b)}) catch @panic("OOM"), "-DPREFIX=\"/usr/local\"", "-DEXEC_PREFIX=\"/usr/local\"", "-DVERSION=\"3.11\"",