Skip to content

Fix mxeval installation in mbxp_evaluation setup#2367

Merged
astachowiczhabana merged 1 commit intohuggingface:v1.21-releasefrom
astachowiczhabana:fix-mxeval-installation
Feb 23, 2026
Merged

Fix mxeval installation in mbxp_evaluation setup#2367
astachowiczhabana merged 1 commit intohuggingface:v1.21-releasefrom
astachowiczhabana:fix-mxeval-installation

Conversation

@astachowiczhabana
Copy link
Collaborator

Problem

Mixtral evaluation models are crashing with ModuleNotFoundError: No module named 'mxeval.execution'.

The mxeval package fails to install during mbxp_evaluation/setup.sh execution due to two issues with newer pip/setuptools versions:

  1. pkg_resources removed from setuptools>=82: mxeval/setup.py uses import pkg_resources, which has been removed. When pip install -e mxeval runs with build isolation (default), pip creates an isolated build environment with the latest setuptools which no longer includes pkg_resources.

  2. Invalid entry_point format: mxeval/setup.py declares an entry point without the required callable suffix (:main), which newer pip versions enforce strictly.

Fix

  • Pin mxeval to a known-good commit (e09974f)
  • Patch the broken entry_point in mxeval/setup.py after cloning
  • Use --no-build-isolation to avoid the pkg_resources issue

Fixes: GAUDISW-246483

@github-actions
Copy link

The code quality check failed, please run make style.

The mxeval package was failing to install due to two issues with
newer pip/setuptools versions:

1. pkg_resources has been removed from setuptools>=82. When pip
   uses build isolation (default), it installs latest setuptools
   which no longer includes pkg_resources, causing mxeval setup.py
   to fail.

2. The entry_point in mxeval setup.py is missing the required
   callable suffix (:main), which newer pip versions enforce.

Fix by:
- Pinning mxeval to a known-good commit (e09974f)
- Patching the broken entry_point after cloning
- Using --no-build-isolation to use existing setuptools
@astachowiczhabana astachowiczhabana changed the base branch from main to v1.21-release February 23, 2026 18:49
@astachowiczhabana astachowiczhabana merged commit ef06eec into huggingface:v1.21-release Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant