@@ -112,82 +112,90 @@ wheelhouse-linux: wheelhouse-clean
112112 @mkdir -p $(WHEELHOUSE )
113113 # manylinux x86_64 (quay.io/pypa) — ABI3: build once with Python 3.12
114114 docker run --rm --platform linux/amd64 -v " $( PWD) " :/io $(MANYLINUX_X86 ) \
115- bash -lc ' set -e; \
116- yum -y install curl perl-core > /dev/null 2>&1 || true ; \
117- (perl -MText::Template -e1 > /dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template > /dev/null)); \
118- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal && \
119- . $$ HOME/.cargo/env && \
120- P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
121- $$ P -m pip install -U pip maturin && \
122- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$ P -o /io/$(WHEELHOUSE ) '
115+ bash -lc 'set -e; \
116+ yum -y install curl perl-core >/dev/null 2>&1 || true; \
117+ (perl -MText ::Template -e1 >/dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template >/dev/null)); \
118+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal && \
119+ . $$HOME/.cargo/env && \
120+ P =$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
121+ $$P -m pip install -U pip maturin && \
122+ export CFLAGS="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
123+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$P -o /io/$(WHEELHOUSE ) '
123124 # manylinux aarch64 (quay.io/pypa) — ABI3: build once with Python 3.12
124125 docker run --rm --platform linux/arm64 -v "$(PWD)":/io $(MANYLINUX_ARM) \
125- bash -lc ' set -e; \
126- yum -y install curl perl-core > /dev/null 2>&1 || true ; \
127- (perl -MText::Template -e1 > /dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template > /dev/null)); \
128- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal && \
129- . $$ HOME/.cargo/env && \
130- P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
131- $$ P -m pip install -U pip maturin && \
132- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$ P -o /io/$(WHEELHOUSE ) '
126+ bash -lc 'set -e; \
127+ yum -y install curl perl-core >/dev/null 2>&1 || true; \
128+ (perl -MText ::Template -e1 >/dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template >/dev/null)); \
129+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal && \
130+ . $$HOME/.cargo/env && \
131+ P =$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
132+ $$P -m pip install -U pip maturin && \
133+ export CFLAGS="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
134+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$P -o /io/$(WHEELHOUSE ) '
133135 # musllinux (Alpine) x86_64 (quay.io/pypa) — ABI3
134136 docker run --rm --platform linux/amd64 -v "$(PWD)":/io $(MUSLLINUX_X86) \
135- bash -lc ' set -e; \
136- apk add --no-cache curl perl perl-text-template > /dev/null 2>&1 || true ; \
137- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal && \
138- . $$ HOME/.cargo/env && \
139- P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
140- $$ P -m pip install -U pip maturin && \
141- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$ P --compatibility musllinux_1_2 -o /io/$(WHEELHOUSE ) '
137+ bash -lc 'set -e; \
138+ apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true; \
139+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal && \
140+ . $$HOME/.cargo/env && \
141+ P =$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
142+ $$P -m pip install -U pip maturin && \
143+ export CFLAGS="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
144+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$P --compatibility musllinux_1_2 -o /io/$(WHEELHOUSE ) '
142145 # musllinux (Alpine) aarch64 (quay.io/pypa) — ABI3
143146 docker run --rm --platform linux/arm64 -v "$(PWD)":/io $(MUSLLINUX_ARM) \
144- bash -lc ' set -e; \
145- apk add --no-cache curl perl perl-text-template > /dev/null 2>&1 || true ; \
146- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal && \
147- . $$ HOME/.cargo/env && \
148- P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
149- $$ P -m pip install -U pip maturin && \
150- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$ P --compatibility musllinux_1_2 -o /io/$(WHEELHOUSE ) '
147+ bash -lc 'set -e; \
148+ apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true; \
149+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal && \
150+ . $$HOME/.cargo/env && \
151+ P =$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
152+ $$P -m pip install -U pip maturin && \
153+ export CFLAGS="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
154+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release -m /io/crates/codex_native/Cargo.toml -i $$P --compatibility musllinux_1_2 -o /io/$(WHEELHOUSE ) '
151155 @echo "Wheelhouse contents:" && ls -al $(WHEELHOUSE)
152156
153157# Build only manylinux x86_64 (useful to avoid cross-arch emulation)
154- wheelhouse-linux-amd64 : wheelhouse-clean
155- @mkdir -p $(WHEELHOUSE )
158+ wheelhouse-linux-amd64: wheelhouse-clean
159+ @mkdir -p $(WHEELHOUSE)
156160 docker run --rm --platform linux/amd64 -v "$(PWD)":/io $(MANYLINUX_X86) \
157- bash -lc ' set -e; yum -y install curl perl-core >/dev/null 2>&1 || true; \
158- (perl -MText::Template -e1 > /dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template > /dev/null)); \
159- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal; \
160- . $$ HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
161- $$ P -m pip install -U pip maturin; \
162- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$ P -o /io/$(WHEELHOUSE ) '
161+ bash -lc 'set -e; yum -y install curl perl-core >/dev/null 2>&1 || true; \
162+ (perl -MText ::Template -e1 >/dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template >/dev/null)); \
163+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal; \
164+ . $$HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1); \
165+ $$P -m pip install -U pip maturin; \
166+ export CFLAGS ="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
167+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$P -o /io/$(WHEELHOUSE ) '
163168
164169# Build only manylinux aarch64 (fast on Apple Silicon; slow on x86_64)
165- wheelhouse-linux-arm64 : wheelhouse-clean
166- @mkdir -p $(WHEELHOUSE )
170+ wheelhouse-linux-arm64: wheelhouse-clean
171+ @mkdir -p $(WHEELHOUSE)
167172 docker run --rm --platform linux/arm64 -v "$(PWD)":/io $(MANYLINUX_ARM) \
168- bash -lc ' set -e; yum -y install curl perl-core >/dev/null 2>&1 || true; \
169- (perl -MText::Template -e1 > /dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template > /dev/null)); \
170- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal; \
171- . $$ HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
172- $$ P -m pip install -U pip maturin; \
173- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$ P -o /io/$(WHEELHOUSE ) '
173+ bash -lc 'set -e; yum -y install curl perl-core >/dev/null 2>&1 || true; \
174+ (perl -MText ::Template -e1 >/dev/null 2>&1 || (curl -sL https://cpanmin.us | perl - App::cpanminus Text::Template >/dev/null)); \
175+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal; \
176+ . $$HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1); \
177+ $$P -m pip install -U pip maturin; \
178+ export CFLAGS ="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
179+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$P -o /io/$(WHEELHOUSE ) '
174180
175181# Build only musllinux x86_64 (Alpine)
176- wheelhouse-musl-amd64 : wheelhouse-clean
177- @mkdir -p $(WHEELHOUSE )
182+ wheelhouse-musl-amd64: wheelhouse-clean
183+ @mkdir -p $(WHEELHOUSE)
178184 docker run --rm --platform linux/amd64 -v "$(PWD)":/io $(MUSLLINUX_X86) \
179- bash -lc ' set -e; apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true; \
180- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal; \
181- . $$ HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
182- $$ P -m pip install -U pip maturin; \
183- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release --compatibility musllinux_1_2 -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$ P -o /io/$(WHEELHOUSE ) '
185+ bash -lc 'set -e; apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true; \
186+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal; \
187+ . $$HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1); \
188+ $$P -m pip install -U pip maturin; \
189+ export CFLAGS ="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
190+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release --compatibility musllinux_1_2 -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$P -o /io/$(WHEELHOUSE ) '
184191
185192# Build only musllinux aarch64 (Alpine)
186- wheelhouse-musl-arm64 : wheelhouse-clean
187- @mkdir -p $(WHEELHOUSE )
193+ wheelhouse-musl-arm64: wheelhouse-clean
194+ @mkdir -p $(WHEELHOUSE)
188195 docker run --rm --platform linux/arm64 -v "$(PWD)":/io $(MUSLLINUX_ARM) \
189- bash -lc ' set -e; apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true; \
190- curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal; \
191- . $$ HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1 ) ; \
192- $$ P -m pip install -U pip maturin; \
193- PATH=$$ HOME/.cargo/bin:$$ PATH $$ P -m maturin build --release --compatibility musllinux_1_2 -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$ P -o /io/$(WHEELHOUSE ) '
196+ bash -lc 'set -e; apk add --no-cache curl perl perl-text-template >/dev/null 2>&1 || true; \
197+ curl -sSf https ://sh.rustup.rs | sh -s -- -y --profile minimal; \
198+ . $$HOME/.cargo/env; P=$$(ls -1 /opt/python/cp312*/bin/python | head -n1); \
199+ $$P -m pip install -U pip maturin; \
200+ export CFLAGS ="$$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE"; \
201+ PATH=$$HOME/.cargo/bin:$$PATH $$P -m maturin build --release --compatibility musllinux_1_2 -j $$(( $$(nproc ) ) ) -m /io/crates/codex_native/Cargo.toml -i $$P -o /io/$(WHEELHOUSE ) '
0 commit comments