Skip to content

Commit

Permalink
Fix for ssz metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
remyroy committed Nov 20, 2024
1 parent c89b9d8 commit 43ae061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/scripts/bundle_proxy_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ python3 -m pip install -r $ETH2REQUIREMENTSPATH --target $TARGETPACKAGESPATH

# Getting packages metadata
PYECCDATA=$(python3 -c "from PyInstaller.utils.hooks import copy_metadata;print(':'.join(copy_metadata('py_ecc')[0]))")
SSZDATA=$(python3 -c "from PyInstaller.utils.hooks import copy_metadata;print(':'.join(copy_metadata('ssz')[0]))")

# Bundling Python stakingdeposit_proxy
PYTHONPATH=$PYTHONPATH pyinstaller \
--onefile \
--distpath $DISTBINPATH \
--add-data "$SRCINTLPATH:ethstaker_deposit/intl" \
--add-data "$PYECCDATA" \
--add-data "$SSZDATA" \
-p $PYTHONPATH \
$SCRIPTPATH/stakingdeposit_proxy.py

Expand Down
6 changes: 2 additions & 4 deletions src/scripts/bundle_proxy_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ python -m pip install -r %ETH2REQUIREMENTSPATH% --target %TARGETPACKAGESPATH%

rem Getting packages metadata
SET PYECCDATA=
FOR /F "tokens=*" %%g IN (`python -c "from PyInstaller.utils.hooks import copy_metadata;print(':'.join(copy_metadata('py_ecc')[0]))"`) do (SET PYECCDATA=%%g)
SET SSZDATA=
FOR /F "tokens=*" %%g IN (`python -c "from PyInstaller.utils.hooks import copy_metadata;print(':'.join(copy_metadata('ssz')[0]))"`) do (SET SSZDATA=%%g)
FOR /F "tokens=*" %%g IN ('python -c "from PyInstaller.utils.hooks import copy_metadata;print(':'.join(copy_metadata('py_ecc')[0]))"') do (SET PYECCDATA=%%g)

rem Bundling Python stakingdeposit_proxy
pyinstaller --onefile --distpath %DISTBINPATH% --add-data "%SRCINTLPATH%;ethstaker_deposit\intl" --add-data "%PYECCDATA%" --add-data "%SSZDATA%" -p %PYTHONPATH% %BATDIR%stakingdeposit_proxy.py
pyinstaller --onefile --distpath %DISTBINPATH% --add-data "%SRCINTLPATH%;ethstaker_deposit\intl" --add-data "%PYECCDATA%" -p %PYTHONPATH% %BATDIR%stakingdeposit_proxy.py

rem Adding word list
copy /Y %SRCWORDSPATH%\* %DISTWORDSPATH%

0 comments on commit 43ae061

Please sign in to comment.