From 8d7d41cd83f36e5669b15ba2cf7f084a39d986f9 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Mon, 6 Apr 2020 22:38:03 +0200 Subject: [PATCH] python 3.5 fix --- cibuildwheel/util.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 953d7943..18d5bd65 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -1,4 +1,5 @@ import os +import sys import urllib.request from fnmatch import fnmatch from time import sleep @@ -106,6 +107,24 @@ class DependencyConstraints(object): return self.base_file_path +BuildOptions = NamedTuple("BuildOptions", [ + ("project_dir", str), + ("output_dir", str), + ("test_command", str), + ("test_requires", List[str]), + ("test_extras", str), + ("before_build", str), + ("build_verbosity", int), + ("build_selector", BuildSelector), + ("repair_command", str), + ("environment", ParsedEnvironment), + ("before_test", str), + ("dependency_constraints", Optional[DependencyConstraints]), + ("manylinux_images", Optional[Dict[str, str]]), +]) + +""" +when drop support of python 3.5 execution. class BuildOptions(NamedTuple): project_dir: str output_dir: str @@ -120,7 +139,7 @@ class BuildOptions(NamedTuple): before_test: str dependency_constraints: Optional[DependencyConstraints] manylinux_images: Optional[Dict[str, str]] - +""" resources_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'resources')) get_pip_script = os.path.join(resources_dir, 'get-pip.py')