Skip to content

Commit

Permalink
Merge pull request #3084 from msarahan/allow_compiler_version_matrices
Browse files Browse the repository at this point in the history
allow looping over compiler_version matrices
  • Loading branch information
msarahan authored Aug 20, 2018
2 parents c02577e + ab4a82c commit c8c7ce5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
conda install -q futures scandir;
fi
- conda update -q --all
- if [ "$CONDA_VERSION" = "4.3.x" ]; then
rm -rf /opt/conda/lib/python$TRAVIS_PYTHON_VERSION/site-packages/conda;
rm -rf /opt/conda/lib/python$TRAVIS_PYTHON_VERSION/site-packages/conda*.egg-info;
Expand All @@ -60,7 +59,7 @@ install:
else
git clone -b $CONDA_VERSION --single-branch --depth 1000 https://github.com/conda/conda.git;
pushd conda;
python -m conda init --dev;
/opt/conda/bin/python -m conda init --dev;
hash -r;
conda info;
popd;
Expand Down
6 changes: 3 additions & 3 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,9 @@ def package_has_file(package_path, file_path):
return False
except OSError as e:
raise RuntimeError("Could not extract %s (%s)" % (package_path, e))
except tarfile.ReadError:
raise RuntimeError("Could not extract metadata from %s. "
"File probably corrupt." % package_path)
except (tarfile.ReadError, IOError, EOFError):
raise RuntimeError("Could not extract metadata from %s. File probably corrupt. "
"Please manually remove this file and try again." % package_path)


def ensure_list(arg):
Expand Down
2 changes: 1 addition & 1 deletion conda_build/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def find_used_variables_in_text(variant, recipe_text, selectors=False):
recipe_lines = recipe_text.splitlines()
for v in variant:
all_res = []
compiler_match = re.match(r'(.*?)_compiler$', v)
compiler_match = re.match(r'(.*?)_compiler(_version)?$', v)
if compiler_match and not selectors:
compiler_lang = compiler_match.group(1)
compiler_regex = (
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
max-line-length = 100
max-line-length = 180
ignore = E122,E123,E126,E127,E128,E731,E722
exclude = build,conda_build/_version.py,tests,conda.recipe,.git,versioneer.py,conda,relative,benchmarks,.asv,docs

Expand Down

0 comments on commit c8c7ce5

Please sign in to comment.