build scripts: add libsecp256k1 library to the electrum_ecc directory
This commit is contained in:
@@ -50,9 +50,9 @@ pushd $WINEPREFIX/drive_c/electrum
|
||||
# see https://github.com/pypa/pip/issues/2195 -- pip makes a copy of the entire directory
|
||||
info "Pip installing Electrum. This might take a long time if the project folder is large."
|
||||
$WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-warn-script-location .
|
||||
# pyinstaller needs to be able to "import electrum", for which we need libsecp256k1:
|
||||
# pyinstaller needs to be able to "import electrum_ecc", for which we need libsecp256k1:
|
||||
# (or could try "pip install -e" instead)
|
||||
cp electrum/libsecp256k1-*.dll "$WINEPREFIX/drive_c/python3/Lib/site-packages/electrum/"
|
||||
cp electrum/libsecp256k1-*.dll "$WINEPREFIX/drive_c/python3/Lib/site-packages/electrum_ecc/"
|
||||
popd
|
||||
|
||||
|
||||
|
||||
@@ -66,9 +66,10 @@ info "Building $pkgname..."
|
||||
make install || fail "Could not install $pkgname"
|
||||
. "$here/$pkgname/dist/lib/libsecp256k1.la"
|
||||
host_strip "$here/$pkgname/dist/lib/$dlname"
|
||||
cp -fpv "$here/$pkgname/dist/lib/$dlname" "$PROJECT_ROOT/electrum" || fail "Could not copy the $pkgname binary to its destination"
|
||||
info "$dlname has been placed in the inner 'electrum' folder."
|
||||
if [ -n "$DLL_TARGET_DIR" ] ; then
|
||||
cp -fpv "$here/$pkgname/dist/lib/$dlname" "$DLL_TARGET_DIR/" || fail "Could not copy the $pkgname binary to DLL_TARGET_DIR"
|
||||
else
|
||||
cp -fpv "$here/$pkgname/dist/lib/$dlname" "$PROJECT_ROOT/electrum" || fail "Could not copy the $pkgname binary to its destination"
|
||||
info "$dlname has been placed in the 'electrum' folder."
|
||||
fi
|
||||
)
|
||||
|
||||
@@ -149,7 +149,7 @@ if [ ! -f "$DLL_TARGET_DIR/libsecp256k1.2.dylib" ]; then
|
||||
else
|
||||
info "Skipping libsecp256k1 build: reusing already built dylib."
|
||||
fi
|
||||
cp -f "$DLL_TARGET_DIR"/libsecp256k1.*.dylib "$PROJECT_ROOT/electrum/" || fail "Could not copy libsecp256k1 dylib"
|
||||
#cp -f "$DLL_TARGET_DIR"/libsecp256k1.*.dylib "$PROJECT_ROOT/electrum" || fail "Could not copy libsecp256k1 dylib"
|
||||
|
||||
if [ ! -f "$DLL_TARGET_DIR/libzbar.0.dylib" ]; then
|
||||
info "Building ZBar dylib..."
|
||||
@@ -189,9 +189,9 @@ python3 -m pip install --no-build-isolation --no-dependencies --no-binary :all:
|
||||
info "Building $PACKAGE..."
|
||||
python3 -m pip install --no-build-isolation --no-dependencies \
|
||||
--no-warn-script-location . > /dev/null || fail "Could not build $PACKAGE"
|
||||
# pyinstaller needs to be able to "import electrum", for which we need libsecp256k1:
|
||||
# pyinstaller needs to be able to "import electrum_ecc", for which we need libsecp256k1:
|
||||
# (or could try "pip install -e" instead)
|
||||
cp "$PROJECT_ROOT/electrum"/libsecp256k1.*.dylib "$VENV_DIR/lib/python$PY_VER_MAJOR/site-packages/electrum/"
|
||||
cp "$DLL_TARGET_DIR"/libsecp256k1.*.dylib "$VENV_DIR/lib/python$PY_VER_MAJOR/site-packages/electrum_ecc/"
|
||||
|
||||
# strip debug symbols of some compiled libs
|
||||
# - hidapi (hid.cpython-39-darwin.so) in particular is not reproducible without this
|
||||
|
||||
Reference in New Issue
Block a user