Skip to content

Commit

Permalink
Remove references to PANTS_DEV env var (#11644)
Browse files Browse the repository at this point in the history
This environment variable was apparently previously used to control some kind of linting that pants no longer does, so we can get rid of the code that sets it.
  • Loading branch information
gshuflin committed Mar 7, 2021
1 parent eed7d2e commit 16040c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions build-support/bin/ci.py
Expand Up @@ -131,15 +131,9 @@ def create_parser() -> argparse.ArgumentParser:

def setup_environment(*, python_version: PythonVersion):
set_cxx_compiler()
set_pants_dev()
setup_python_interpreter(python_version)


def set_pants_dev() -> None:
"""We do this because we are running against a Pants clone."""
os.environ["PANTS_DEV"] = "1"


def set_cxx_compiler() -> None:
compiler = "g++" if platform.system() != "Darwin" else "clang++"
os.environ["CXX"] = compiler
Expand Down
8 changes: 0 additions & 8 deletions pants
Expand Up @@ -106,12 +106,4 @@ if [[ -n "${WRAPPER_SRCPATH}" ]]; then
log "*** Running pants with extra sources ${WRAPPER_SRCPATH} ***"
fi

if [[ -n "$PANTS_DEV" && "$PANTS_DEV" -eq 0 ]]; then
# Unexport PANTS_DEV if explicitly set to 0.
export -n PANTS_DEV
else
# We're running against a Pants clone.
export PANTS_DEV=1
fi

exec_pants_bare "$@"

0 comments on commit 16040c9

Please sign in to comment.