|
6 | 6 | Build distribution packages for all architectures and all supported |
7 | 7 | python versions. |
8 | 8 |
|
9 | | -TODO: Mac support. Currently runs only on Windows/Linux. |
10 | | -
|
11 | 9 | Usage: |
12 | 10 | build_distrib.py VERSION [--no-run-examples] [--no-rebuild] |
13 | 11 |
|
|
24 | 22 | 1. Expects that all supported python versions are installed |
25 | 23 | a) On Windows search for Pythons in the multiple default install |
26 | 24 | locations |
27 | | - b) On Mac use system Python 2.7 and Python 3 from ~/.pyenv/versions/ |
| 25 | + b) On Linux use only Pythons from ~/.pyenv/versions/ |
28 | 26 | directory |
29 | | - c) On Linux use only Pythons from ~/.pyenv/versions/ directory |
| 27 | + c) On Mac use Pythons from ~/.pyenv/versions/ and /usr/local/bin/python |
| 28 | + For example will use Python 2.7.13 from /usr/local/bin/ only |
| 29 | + when 2.7 was not found in ~/.pyenv/versions/. |
30 | 30 | 2. Expects that all python compilers for supported python versions |
31 | 31 | are installed. See docs/Build-instructions.md > Requirements. |
32 | 32 | 3. Expects cef_binary*/ directories from Spotify Automated Builds |
|
83 | 83 | LINUX=[ |
84 | 84 | "%PYENV_ROOT%/versions/*/bin", |
85 | 85 | ], |
| 86 | + MAC=[ |
| 87 | + "%PYENV_ROOT%/versions/*/bin", |
| 88 | + "/usr/local/bin", |
| 89 | + ], |
86 | 90 | ) |
87 | 91 |
|
88 | 92 |
|
@@ -516,7 +520,7 @@ def test_wheel_packages(pythons): |
516 | 520 | print("[build_distrib.py] Test wheel package (install, unittests) for" |
517 | 521 | " {python_name}".format(python_name=python["name"])) |
518 | 522 | platform_tag = get_pypi_postfix2_for_arch(python["arch"]) |
519 | | - whl_pattern = (r"*-{platform_tag}.whl" |
| 523 | + whl_pattern = (r"*{platform_tag}.whl" |
520 | 524 | .format(platform_tag=platform_tag)) |
521 | 525 | wheels = glob.glob(os.path.join(DISTRIB_DIR, whl_pattern)) |
522 | 526 | assert len(wheels) == 1, ("No wheels found in distrib dir for %s" |
|
0 commit comments