Skip to content

Instantly share code, notes, and snippets.

@stjbrown
Created April 5, 2013 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stjbrown/09bfc9756a899d2fea61 to your computer and use it in GitHub Desktop.
Save stjbrown/09bfc9756a899d2fea61 to your computer and use it in GitHub Desktop.
Install Suds
import urllib
import tarfile
import shutil
import console
import os
print 'Downloading Suds...'
url = 'https://fedorahosted.org/releases/s/u/suds/python-suds-0.4.tar.gz'
urllib.urlretrieve(url, 'python-suds-0.4.tar.gz')
print 'Extracting...'
t = tarfile.open('python-suds-0.4.tar.gz')
t.extractall()
if os.path.isdir('suds'):
shutil.rmtree('suds')
shutil.move('python-suds-0.4/suds', './suds')
print 'Cleaning up...'
shutil.rmtree('python-suds-0.4')
os.remove('python-suds-0.4.tar.gz')
print 'Done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment