Skip to content

Instantly share code, notes, and snippets.

@macagua
Created February 9, 2018 16:40
Show Gist options
  • Save macagua/235f875138221f2a9032c0adc4144fde to your computer and use it in GitHub Desktop.
Save macagua/235f875138221f2a9032c0adc4144fde to your computer and use it in GitHub Desktop.
[TIP] When there is Internet latency and requires installing python packages by a buildout proyect, for later shared these packages with others buildout proyect, then you can prevent buildout from re-downloading previously downloaded packages, running this command:
mkdir -p $HOME/.buildout/{downloads,eggs,extends,zope} && echo $HOME $HOME $HOME $HOME | awk '{ printf( "[buildout]\neggs-directory = %s/.buildout/eggs\ndownload-cache = %s/.buildout/downloads\nextends-cache = %s/.buildout/extends\nzope-directory = %s/.buildout/zope\nabi-tag-eggs = true\n", $1, $2, $3, $4 ) }' >> ~/.buildout/default.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment