@@ -21,7 +21,6 @@ pub fn build(b: *std.Build) !void {
21
21
});
22
22
23
23
const config_header = getConfigHeader (b , t );
24
- // b.addInstallHeaderFile(source: LazyPath, dest_rel_path: []const u8)
25
24
26
25
// zig build of python
27
26
const libpython = try buildLibPython (b , target , optimize , config_header );
@@ -67,17 +66,6 @@ pub fn build(b: *std.Build) !void {
67
66
run_step .dependOn (& run_cmd .step );
68
67
examples_step .dependOn (& exe .step );
69
68
}
70
-
71
- const translate_step = b .step ("translate" , "Translates the c files" );
72
-
73
- const config_translate = translateFile (b , b .path ("Include/cpython/initconfig.h" ), target , optimize , config_header );
74
- const translate_install = b .addInstallDirectory (.{
75
- .source_dir = config_translate .getOutput (),
76
- .install_dir = .{ .custom = "translate" },
77
- .install_subdir = "headers" ,
78
- });
79
-
80
- translate_step .dependOn (& translate_install .step );
81
69
}
82
70
83
71
fn getModule (b : * std.Build , target : std.Build.ResolvedTarget , optimize : std.builtin.Mode ) * std.Build.Module {
@@ -115,29 +103,6 @@ fn addIncludes(
115
103
step .addConfigHeader (config_header );
116
104
}
117
105
118
- fn translateFile (
119
- b : * std.Build ,
120
- file : std.Build.LazyPath ,
121
- target : std.Build.ResolvedTarget ,
122
- optimize : std.builtin.OptimizeMode ,
123
- config_header : * std.Build.Step.ConfigHeader ,
124
- ) * Step.TranslateC {
125
- const step = b .addTranslateC (.{
126
- .root_source_file = file ,
127
- .target = target ,
128
- .optimize = optimize ,
129
- });
130
-
131
- step .step .dependOn (& config_header .step );
132
-
133
- step .addIncludeDir (b .path ("Include/internal" ).getPath (b ));
134
- step .addIncludeDir (b .path ("." ).getPath (b ));
135
- step .addIncludeDir (b .path ("Include" ).getPath (b ));
136
- // step.addIncludeDir(config_header.output_file.getPath());
137
-
138
- return step ;
139
- }
140
-
141
106
fn buildCpython (
142
107
b : * std.Build ,
143
108
target : std.Build.ResolvedTarget ,
0 commit comments