Skip to content

Commit

Permalink
Add MODULE.bazel
Browse files Browse the repository at this point in the history
Test Python dependencies now use rules_python
Update deps

PiperOrigin-RevId: 609605937
  • Loading branch information
pybind11_abseil authors authored and copybara-github committed Feb 23, 2024
1 parent 201a58f commit ea2282d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/build_and_run_tests_bazel.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash

# The following scripts:
# - updates the frozen dependencies
# - builds and runs tests
# The following script builds and runs tests

set -e # exit when any command fails
set -x # Prints all executed commands
Expand All @@ -21,12 +19,7 @@ fi

echo "Building and testing in $PWD using 'python' (version $PYVERSION)."

export PYTHON_BIN_PATH=`which python3`
export PYTHON_LIB_PATH=`python3 -c "import sysconfig; print(sysconfig.get_path('include'))"`
echo "Using PYTHON_BIN_PATH: $PYTHON_BIN_PATH"
echo "Using PYTHON_LIB_PATH: $PYTHON_LIB_PATH"

bazel clean --expunge
bazel clean --expunge # Force a dep update

BAZEL_CXXOPTS="-std=c++17" bazel test ... --test_output=errors "$@" --enable_bzlmod
BAZEL_CXXOPTS="-std=c++20" bazel test ... --test_output=errors "$@" --enable_bzlmod
Expand Down

0 comments on commit ea2282d

Please sign in to comment.