Skip to content

Instantly share code, notes, and snippets.

@fernandascovino
Created December 31, 2020 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandascovino/dc5169110c21f1254e0a9b29ab39971a to your computer and use it in GitHub Desktop.
Save fernandascovino/dc5169110c21f1254e0a9b29ab39971a to your computer and use it in GitHub Desktop.
change wheel package (example with streamlit-0.70.0)
# runs to unpack wheel to 3 subfolders: streamlit-0.70.0, streamlit-0.70.0.data, streamlit-0.70.0.dist_info
# (you can just delete or move this whl to other place now)
unzip streamlit-0.70.0-py2.py3-none-any.whl
# GO CRAZY: change whatever you need in the unpacked folder! ...
# make dir with folder name you want to pack again
mkdir streamlit-0.70.0-py2.py3-none-any
# move the 3 subfolders to the folder created
mv streamlit-0.70.0.dist_info streamlit-0.70.0.data streamlit-0.70.0 streamlit-0.70.0-py2.py3-none-any
# pack it all again to streamlit-0.70.0-py2.py3-none-any.whl
# (you will need to remove, move or rename the original one if still here)
wheel pack streamlit-0.70.0-py2.py3-none-any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment