Skip to content

Commit 89ecef5

Browse files
committed
get rid of (non-portable?) sed -i
1 parent 99984d0 commit 89ecef5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build-cp.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ HERE="$(dirname -- "$(readlinkf_posix -- "${0}")" )"
4040
[ -e circuitpython/py/py.mk ] || (git clone --no-recurse-submodules --depth 100 --branch 6.0.x https://github.com/adafruit/circuitpython && cd circuitpython && git submodule update --init lib/uzlib tools)
4141
rm -rf circuitpython/extmod/ulab; ln -s "$HERE" circuitpython/extmod/ulab
4242
make -C circuitpython/mpy-cross -j$NPROC
43-
cp circuitpython/ports/unix/mpconfigport.h circuitpython/ports/unix/mpconfigport_ulab.h
44-
sed -i '/MICROPY_PY_UHASHLIB/s/1/0/' circuitpython/ports/unix/mpconfigport_ulab.h
43+
sed -e '/MICROPY_PY_UHASHLIB/s/1/0/' < circuitpython/ports/unix/mpconfigport.h > circuitpython/ports/unix/mpconfigport_ulab.h
4544
# Work around circuitpython#3990
4645
make -C circuitpython/ports/unix -j$NPROC DEBUG=1 MICROPY_PY_FFI=0 MICROPY_PY_BTREE=0 MICROPY_SSL_AXTLS=0 MICROPY_PY_USSL=0 CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_ulab.h>"' build/genhdr/qstrdefs.generated.h
4746
make -C circuitpython/ports/unix -j$NPROC DEBUG=1 MICROPY_PY_FFI=0 MICROPY_PY_BTREE=0 MICROPY_SSL_AXTLS=0 MICROPY_PY_USSL=0 CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_ulab.h>"'

0 commit comments

Comments
 (0)