Created
January 8, 2021 01:58
-
-
Save seasonedgeek/01ef17a720494a5deb695d279b103c2b to your computer and use it in GitHub Desktop.
Zsh Script to manage a local Python 3 project.egg-info directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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