Skip to content

Instantly share code, notes, and snippets.

@milescsmith
Last active January 10, 2025 09:38
Show Gist options
  • Save milescsmith/2c4afcded739d38345f520a63d7357fa to your computer and use it in GitHub Desktop.
Save milescsmith/2c4afcded739d38345f520a63d7357fa to your computer and use it in GitHub Desktop.
install python module from git where setup.py is in a subdirectory
pip install -e 'git://github.com/{ username }/{ reponame }.git@{ tag name }#egg={ desired egg name }&subdirectory={ subdir }'
or
pip install -e 'https://github.com/{ username }/{ reponame }.git@{ branch/tag name }#egg={ whatever }&subdirectory={ subdir }'
The key is those single quotes - without them, Bash ignores the subdirectory portion.
@numbworks
Copy link

Thank you man, very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment