Build Python bindings in build.yml.
We currently skip building the Python bindings on Windows since MSVC takes an hour+ on them. Internally, we use Clang for our Windows build, so are not affected by this issue. PiperOrigin-RevId: 450914163 Change-Id: I329aab28f3a2aeb1896242a8712f89d8ecff2f92
This commit is contained in:
committed by
Copybara-Service
parent
223874c4ca
commit
aefab0e9dc
@@ -21,7 +21,7 @@ fi
|
||||
# Figure out the path to this script (https://stackoverflow.com/a/246128).
|
||||
package_dir="$(cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
|
||||
if [[ "$(uname)" == CYGWIN* ]]; then
|
||||
if [[ "$(uname)" == CYGWIN* || "$(uname)" == MINGW* ]]; then
|
||||
package_dir="$(cygpath -m ${package_dir})"
|
||||
readonly tmp_dir="$(TMPDIR="${LOCALAPPDATA//\\/$'/'}/Temp" mktemp -d)"
|
||||
else
|
||||
@@ -35,7 +35,7 @@ cp -r "${package_dir}"/* .
|
||||
|
||||
# Generate header files.
|
||||
old_pythonpath="${PYTHONPATH}"
|
||||
if [[ "$(uname)" == CYGWIN* ]]; then
|
||||
if [[ "$(uname)" == CYGWIN* || "$(uname)" == MINGW* ]]; then
|
||||
export PYTHONPATH="${old_pythonpath};${package_dir}/.."
|
||||
else
|
||||
export PYTHONPATH="${old_pythonpath}:${package_dir}/.."
|
||||
|
||||
Reference in New Issue
Block a user