Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
Last active December 18, 2018 15:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jetsonhacks/13e0b9decc1561c80215eb45459ca45e to your computer and use it in GitHub Desktop.
Save jetsonhacks/13e0b9decc1561c80215eb45459ca45e to your computer and use it in GitHub Desktop.
Get the JasonAtNVIDIA JetsonTFBuild scripts without the wheel files
#!/bin/bash
cd $HOME
# Get TensorFlow build scripts from JasonAtNvidia JetsonTFBuild repository
git clone --no-checkout https://github.com/JasonAtNvidia/JetsonTFBuild.git
cd JetsonTFBuild
# Sparse checkout tells git not to checkout the wheels directory
# where all of the .whl files are kept
git config core.sparsecheckout true
# Do not checkout the wheels directory
echo '!wheels/*' >> .git/info/sparse-checkout
# But checkout everything else
echo "/*" >> .git/info/sparse-checkout
git checkout
echo "JetsonTFBuild checked out"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment