Lines Matching +full:curl +full:- +full:for +full:- +full:win
1 # coding: utf-8
25 modularcrypto repos for more accurate coverage data.
28 deps_dir = os.path.join(build_root, 'modularcrypto-deps')
37 print("Checking out modularcrypto packages for coverage")
38 for other_package in other_packages:
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
214 for info in _list_archive_members(archive):
237 Returns a normalized file path for an archive info object
291 If running setup.py, change to this dir first - a unicode string
299 for zi in zf.infolist():
337 for info in _list_archive_members(ar):
346 for info, rel_path in members:
365 # setup.py. This is important for things like setuptools.
370 env[b'PYTHONPATH'] = deps_dir.encode('utf-8')
377 '--root=%s' % root,
378 '--install-lib=%s' % install_lib,
379 '--no-compile'
401 A sorted generator of 2-element tuples:
403 1: A tuple of tuples containing integers - this is the output of
404 _tuple_from_ver() for the PEP 440 version number and is intended
405 for comparing versions
409 for v in releases:
429 will be None, or a comma-separated list of conditions that must be
443 ver_str = ver_str[:-2]
447 for part in map(str_cls.strip, requires_python.split(',')):
483 A unicode string URL, or None if not a valid release for the current
491 win_arch = 'win32' if sys.maxsize == 2147483647 else 'win-amd64'
493 exe_suffix = '.%s-py%d.%d.exe' % (win_arch, version_info[0], version_info[1])
500 for download in downloads:
507 parts = os.path.basename(download['url']).split('-')
508 tag_impl = parts[-3]
509 tag_abi = parts[-2]
510 tag_arch = parts[-1].split('.')[0]
517 # Find the most-specific wheel possible
518 for tag in valid_tags:
544 A unicode path to a temporary diretory to use for downloads
551 for p in packages:
563 for part in parts:
576 pkg_info = json.loads(f.read().decode('utf-8'))
588 … for ver_str, ver_tup in reversed(_sort_pep440_versions(pkg_info['releases'], False)):
609 Does basic parsing of pip requirements files, to allow for
617 - 'type' ('any', 'url', '==', '>=')
618 - 'pkg'
619 - 'ver' (if 'type' == '==' or 'type' == '>=')
628 contents = f.read().decode('utf-8')
630 for line in re.split(r'\r?\n', contents):
644 r'([-._]?(?:alpha|a|beta|b|preview|pre|c|rc)\.?\d*)?'
645 r'(-\d+|(?:[-._]?(?:rev|r|post)\.?\d*))?'
646 r'([-._]?dev\.?\d*)?'
657 if re.match(r'^\s*-r\s*', package):
658 sub_req_file = re.sub(r'^\s*-r\s*', '', package)
681 if re.search(r'[^ a-zA-Z0-9\-]', package):
703 A 2-element tuple of (stdout, stderr)
716 if retry and retry in stderr.decode('utf-8'):
718 e = OSError('subprocess exit code for "%s" was %d: %s' % (' '.join(params), code, stderr))