Skip to content

Instantly share code, notes, and snippets.

@sooop
Created January 15, 2014 05:12
Show Gist options
  • Save sooop/8431188 to your computer and use it in GitHub Desktop.
Save sooop/8431188 to your computer and use it in GitHub Desktop.
get install script of setuptools, pip
#!C:/pypy/pypy.exe
import urllib2
def main():
# get ezsetup.py
e_url = "https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py"
u = urllib2.urlopen(e_url)
with open('ez_setup.py','w') as f:
f.write(u.read().encode('utf-8'))
p_url = "https://raw.github.com/pypa/pip/master/contrib/get-pip.py"
u = urllib2.urlopen(p_url)
with open('get-pip.py','w') as f:
f.write(u.read().encode('utf-8'))
if __name__ == "__main__":
main()
@sooop
Copy link
Author

sooop commented May 2, 2014

gets.py

download setuptools and pip, and install them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment