Skip to content

Setuptools 9.1.0 break xmlsec and likely other installation (new issue - not the same as in 9.0.*) #1194

@potiuk

Description

@potiuk

It looks like setuptools-scm 9.1.0 released 2 hours ago again breaks xmlsec installation from sources. The errors we start gettiing in Airflow CI indicate that the source package has 0.0.0 version that does not match declared version, and timing of the event indicate that this is related to the 9.1.0 release of setuptools-scm - even if it is not obvious from errors.

This affects both pip install and uv pip install and multiple versions of xmlsec are affected:

xmlsec/python-xmlsec#369 (pip install):

WARNING: Requested xmlsec==1.3.13 from https://files.pythonhosted.org/packages/.../xmlsec-1.3.13.tar.gz (from -r requirements.txt (line 7)), but installing version 0.0.0
Discarding ... (requires-python:>=3.5): Requested xmlsec==1.3.13 ... has inconsistent version: expected '1.3.13', but metadata has '0.0.0'

Airflow CI failures (uv pip install):

https://github.com/apache/airflow/actions/runs/16876946675/job/47804260895?pr=54351#step:6:1153

  #45 238.2   × Failed to download and build `xmlsec==1.3.16`
  #45 238.2   ╰─▶ Package metadata version `0.0.0` does not match given version `1.3.16`
  #45 238.2   help: `xmlsec` (v1.3.16) was included because
  #45 238.2         `apache-airflow-providers-amazon[python3-saml]` (v9.12.0) depends
  #45 238.2         on `xmlsec`
  #45 ERROR: process "/bin/bash -o pipefail -o errexit -o nounset -o nolog -c bash /scripts/docker/install_airflow_when_building_images.sh" did not complete successfully: exit code: 1
  ------
   > [main 16/24] RUN --mount=type=cache,id=ci-amd64-0,target=/root/.cache/ bash /scripts/docker/install_airflow_when_building_images.sh:
  231.4    Building mysqlclient==2.2.7
  231.4    Building krb5==0.7.1
  231.7    Building lxml==6.0.0
  232.6       Built pure-sasl==0.6.2
  
  238.2   × Failed to download and build `xmlsec==1.3.16`
  238.2   ╰─▶ Package metadata version `0.0.0` does not match given version `1.3.16`
  238.2   help: `xmlsec` (v1.3.16) was included because
  238.2         `apache-airflow-providers-amazon[python3-saml]` (v9.12.0) depends
  238.2         on `xmlsec`

The way to reproduce it:

pip install --no-binary xmlsec xmlsec==1.3.16

or

uv pip install --no-binary xmlsec xmlsec==1.3.16

Same with 1.3.14 as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions