Lines Matching refs:sys
21 import sys
23 DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
70 import sys, os
78 print >>sys.stderr, (
82 sys.exit(2)
100 was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules
103 sys.path.insert(0, egg)
114 print >>sys.stderr, (
120 sys.exit(2)
124 del pkg_resources, sys.modules['pkg_resources'] # reload ok
139 egg_name = "setuptools-%s-py%s.egg" % (version,sys.version[:3])
217 sys.path.insert(0,egg)
225 print >>sys.stderr, (
229 sys.exit(2)
241 sys.exit(0) # try to force an exit
266 srcfile = inspect.getsourcefile(sys.modules[__name__])
271 print >>sys.stderr, "Internal error!"
272 sys.exit(2)
281 if len(sys.argv)>2 and sys.argv[1]=='--md5update':
282 update_md5(sys.argv[2:])
284 main(sys.argv[1:])