Lines Matching +full:read +full:- +full:pkg
1 # coding: utf-8
28 deps_dir = os.path.join(build_root, 'modularcrypto-deps')
77 code += "(New-Object Net.WebClient).DownloadFile('%s', '%s');" % (url, dest_path)
78 _execute([powershell_exe, '-Command', code], dest, 'Unable to connect to')
82 ['curl', '-L', '--silent', '--show-error', '-O', url],
101 r'([-._]?(?:alpha|a|beta|b|preview|pre|c|rc)\.?\d*)?'
102 r'(-\d+|(?:[-._]?(?:rev|r|post)\.?\d*))?'
103 r'([-._]?dev\.?\d*)?',
118 pre = pre.lstrip('._-')
127 'a': -3,
128 'b': -2,
129 'rc': -1,
154 dev_tup = (-4, dev_dig)
203 Check if all members of the archive are in a single top-level directory
268 out = archive.read(info)
275 return info_file.read()
291 If running setup.py, change to this dir first - a unicode string
369 '--root=%s' % root,
370 '--install-lib=%s' % install_lib,
371 '--no-compile'
392 A sorted generator of 2-element tuples:
394 1: A tuple of tuples containing integers - this is the output of
420 will be None, or a comma-separated list of conditions that must be
434 ver_str = ver_str[:-2]
482 win_arch = 'win32' if sys.maxsize == 2147483647 else 'win-amd64'
484 exe_suffix = '.%s-py%d.%d.exe' % (win_arch, version_info[0], version_info[1])
498 parts = os.path.basename(download['url']).split('-')
499 tag_impl = parts[-3]
500 tag_abi = parts[-2]
501 tag_arch = parts[-1].split('.')[0]
508 # Find the most-specific wheel possible
544 pkg = p['pkg']
548 if '#' in pkg:
549 pkg, anchor = pkg.split('#', 1)
559 …if pkg.endswith('.zip') or pkg.endswith('.tar.gz') or pkg.endswith('.tar.bz2') or pkg.endswith('.w…
560 url = pkg
564 pypi_json_url = 'https://pypi.org/pypi/%s/json' % pkg
567 pkg_info = json.loads(f.read().decode('utf-8'))
573 raise Exception('Unable to find version %s of %s' % (p['ver'], pkg))
576 … raise Exception('Unable to find a compatible download of %s == %s' % (pkg, p['ver']))
587 … raise Exception('Unable to find a compatible download of %s >= %s' % (pkg, p['ver']))
589 raise Exception('Unable to find a compatible download of %s' % pkg)
608 - 'type' ('any', 'url', '==', '>=')
609 - 'pkg'
610 - 'ver' (if 'type' == '==' or 'type' == '>=')
619 contents = f.read().decode('utf-8')
638 if re.match(r'^\s*-r\s*', package):
639 sub_req_file = re.sub(r'^\s*-r\s*', '', package)
645 packages.append({'type': 'url', 'pkg': package})
652 packages.append({'type': '>=', 'pkg': package, 'ver': ver})
659 packages.append({'type': '==', 'pkg': package, 'ver': ver})
662 if re.search(r'[^ a-zA-Z0-9\-]', package):
665 packages.append({'type': 'any', 'pkg': package})
684 A 2-element tuple of (stdout, stderr)
696 if retry and retry in stderr.decode('utf-8'):