Commit 59b091d9 by Ned Batchelder

Silently fail on missing requirements

(cherry picked from commit 6e4a47de)
parent 37d49963
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