10 This will attempt to create an ebuild for every single release on PyPI
11 which obviously will take a long time and require a decent amount of bandwidth
22 from yolk.pypi import CheeseShop
25 cheeseshop = CheeseShop()
26 PKG_INDEX = "pkg_index"
28 if os.path.exists(PKG_INDEX):
29 full_index = pickle.load(open(PKG_INDEX, 'r'))
31 full_index = cheeseshop.search({"name":"foo"}, "or")
32 pickle.dump(full_index, open(PKG_INDEX, "w"))
35 for pkg in full_index:
38 if 'dev' in pkg['version']:
39 #print pkg['name'], pkg['version']
40 os.system('echo Testing %s' % pkg['name'].encode('utf-8'))
41 os.system('g-pypi -Vo %s' % pkg['name'])
42 #os.system('echo %s' % ('-' * 79))