diff --git a/dev-python/importlib_metadata/importlib_metadata-6.8.0.recipe b/dev-python/importlib_metadata/importlib_metadata-6.8.0.recipe index 5ad14c9ab..afed7a3e6 100644 --- a/dev-python/importlib_metadata/importlib_metadata-6.8.0.recipe +++ b/dev-python/importlib_metadata/importlib_metadata-6.8.0.recipe @@ -51,11 +51,21 @@ done INSTALL() { + # Needed due to the presence of HaikuPorter's work .git dir: + # setuptools_scm assumes that .git is from the project, and fails to get the info it needs + # generating wrong default value in that case. + export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion + for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} python=python${PYTHON_VERSIONS[$i]} + # Needed to build without -G in the haikuporter build call. + # the presence of HaikuPorter's working .git dir seems to confuse + # some python's builds/packages. + rm -rf dist + $python -m build --wheel --skip-dependency-check --no-isolation $python -m installer -p $prefix dist/*.whl