Skip to content

Instantly share code, notes, and snippets.

@seasonedgeek
Created January 8, 2021 01:58
Show Gist options
  • Save seasonedgeek/01ef17a720494a5deb695d279b103c2b to your computer and use it in GitHub Desktop.
Save seasonedgeek/01ef17a720494a5deb695d279b103c2b to your computer and use it in GitHub Desktop.
Zsh Script to manage a local Python 3 project.egg-info directory.
#!/opt/local/bin/zsh
# make-egg
usage="
$0 [pie | dump | help] -- makes editable <project>.egg-info
where options are:
pie creates <project>.egg-info directory
dump removes <project>.egg-info directory
help show this help text."
case "$1" in
'pie')
python3 -m pip install -e .
;;
'dump')
python3 setup.py develop -u
;;
'help')
echo "$usage"
;;
*)
echo "$usage"
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment