Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion configure_wrapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#! /bin/sh

# Note: ./configure will remove all conftest* files, including the
# pytest conftest.py. We work around this by making a copy and
# restoring when we are done, regardless of whether configure succeeds
# or fails.

set -e

trap 'mv bak_conftest.py conftest.py; trap - EXIT; exit' EXIT INT HUP TERM

cp conftest.py bak_conftest.py
./real_configure $@
mv bak_conftest.py conftest.py
Loading