Skip to content

Instantly share code, notes, and snippets.

@kylelk
Created April 4, 2014 15:48
Show Gist options
  • Save kylelk/9977433 to your computer and use it in GitHub Desktop.
Save kylelk/9977433 to your computer and use it in GitHub Desktop.
downloads python modules and builds them into the current directory
easy_install -q --editable --build-directory . $1
cd $1
python setup.py build
if [ -d "build/lib/$1" ]
then
cp -r build/lib/$1 ../$1_temp
else
cp -r build/lib/$1.py ../$1.py
fi
cd ..
rm -rf $1
mv $1_temp $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment