Fix Makefile syntax

This commit is contained in:
Roman Yurchak 2020-05-09 12:48:35 +02:00
parent f3f596f0c1
commit d02a96ece4
2 changed files with 9 additions and 10 deletions

View File

@ -242,13 +242,14 @@ $(PARSO_LIBS): $(CPYTHONLIB)
$(CLAPACK): $(CPYTHONLIB)
ifdef PYODIDE_PACKAGES
echo "Skipping BLAS/LAPACK build due to PYODIDE_PACKAGES being defined."
echo "Build it manually with make -C CLAPACK if needed."
touch $(CLAPACK)
else
make -C CLAPACK
endif
ifdef PYODIDE_PACKAGES
echo "Skipping BLAS/LAPACK build due to PYODIDE_PACKAGES being defined."
echo "Build it manually with make -C CLAPACK if needed."
mkdir -p CLAPACK/CLAPACK-WA/
touch $(CLAPACK)
else
make -C CLAPACK
endif

View File

@ -49,9 +49,7 @@ def test_import(name, selenium_standalone):
'{} fails to load and is not supported on {}.'
.format(name, selenium_standalone.browser))
built_packages = _parse_package_subset(
os.environ.get('PYODIDE_PACKAGES', "")
)
built_packages = _parse_package_subset(os.environ.get('PYODIDE_PACKAGES'))
# only a subset of packages were built
if built_packages is not None and name not in built_packages:
pytest.skip(f'{name} was skipped due to PYODIDE_PACKAGES')