Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
Last active December 18, 2018 15:10
Show Gist options
  • 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