Commit e4197b2c by Ned Batchelder Committed by GitHub

Merge pull request #3675 from edx/nedbat/silent-needless-errors

Silently fail on missing requirements
parents 52a47266 6e4a47de
import yaml
import os
import pathlib2
import itertools
import sys
import argparse
import logging
import os
import sys
try:
# This script is used by docker.mk at parse-time, which means when you run
# "make requirements" to install the required Python packages, this script
# runs before its requirements are installed. That means this import will
# fail. To prevent a successful installation from having irrelevant error
# messages, we catch the failure and exit silently.
import pathlib2
except ImportError:
sys.exit(1)
import docker_images
TRAVIS_BUILD_DIR = os.environ.get("TRAVIS_BUILD_DIR", "")
CONFIG_FILE_PATH = pathlib2.Path(TRAVIS_BUILD_DIR, "util", "parsefiles_config.yml")
LOGGER = logging.getLogger(__name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment