Skip to content

Commit

Permalink
remove stub for lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 committed Jul 9, 2024
1 parent 0c5c0a7 commit e83ac66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ pub fn build(b: *std.Build) !void {
exe_options.addOption(usize, "src_file_trimlen", std.fs.path.dirname(std.fs.path.dirname(@src().file).?).?.len);
exe_options.addOption(bool, "enable_debug_extensions", enable_debug_extensions);
exe_options.addOption(bool, "build_debug", enable_debug);
exe_options.addOption([]const u8, "lib_path", "../python/Lib");
exe.root_module.addOptions("options", exe_options);
exe_options.addOption([]const u8, "lib_path", b.fmt("{s}/python/Lib", .{b.install_path}));

const tracer_dep = b.dependency("tracer", .{ .optimize = optimize, .target = target });
const libgc_dep = b.dependency("libgc", .{ .optimize = optimize, .target = target });
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/Python.zig
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn Initialize(
_ = externs.PyConfig_Read(&config);

const utf32_path = try utf8ToUtf32Z(
"/home/dr/Zython/osmium/zig-out/python/Lib",
build_options.lib_path,
allocator,
);

Expand Down
2 changes: 1 addition & 1 deletion tests/cases.zig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn addCases(
for (test_dirs) |dir| {
const files = try getPyFilesInDir(b, b.fmt("tests/{s}", .{dir}), b.allocator);
for (files) |file| {
parent_step.dependOn(addCase(b, target, file, osmium, python, compare_tool));
parent_step.dependOn(addCase(b, file, osmium, python, compare_tool));
}
}
}
Expand Down

0 comments on commit e83ac66

Please sign in to comment.