Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: setuptools-scm creates failed vendor build #169501

Closed
LecrisUT opened this issue Apr 19, 2024 · 3 comments
Closed

Python: setuptools-scm creates failed vendor build #169501

LecrisUT opened this issue Apr 19, 2024 · 3 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@LecrisUT
Copy link
Contributor

LecrisUT commented Apr 19, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

PR is more relevant: #164367

Verification

(Build failure reproducible in the CI)

What were you trying to do (and why)?

Package tmt as a testing framework.

What happened (include all command output)?

When building pint as a dependency of tmt, it is trying to get setuptools-scm as a build dependency. The download succeeds, but for some reason, instead of detecting that setuptools-scm is 8.0.4 (version downloaded) it is reporting 1.31.0 (version of tmt) which breaks the build further on.

    Collecting setuptools_scm>=3.4.3 (from setuptools_scm[toml]>=3.4.3)
      Downloading setuptools-scm-8.0.4.tar.gz (74 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.3/74.3 kB 3.5 MB/s eta 0:00:00
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Installing backend dependencies: started
      Installing backend dependencies: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
      WARNING: Requested setuptools_scm>=3.4.3 from https://files.pythonhosted.org/packages/eb/b1/0248705f10f6de5eefe7ff93e399f7192257b23df4d431d2f5680bb2778f/setuptools-scm-8.0.4.tar.gz (from setuptools_scm[toml]>=3.4.3), but installing version 1.31.0
    Discarding https://files.pythonhosted.org/packages/eb/b1/0248705f10f6de5eefe7ff93e399f7192257b23df4d431d2f5680bb2778f/setuptools-scm-8.0.4.tar.gz (from https://pypi.org/simple/setuptools-scm/) (requires-python:>=3.8): Requested setuptools_scm>=3.4.3 from https://files.pythonhosted.org/packages/eb/b1/0248705f10f6de5eefe7ff93e399f7192257b23df4d431d2f5680bb2778f/setuptools-scm-8.0.4.tar.gz (from setuptools_scm>=3.4.3) has inconsistent version: expected '8.0.4', but metadata has '1.31.0'
      Downloading setuptools-scm-8.0.3.tar.gz (72 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.8/72.8 kB 10.8 MB/s eta 0:00:00
      Installing build dependencies: started
      Installing build dependencies: finished with status 'error'
      error: subprocess-exited-with-error

Step-by-step reproduction instructions (by running brew commands)

See formula in: #164367

@LecrisUT LecrisUT added the bug Reproducible Homebrew/homebrew-core bug label Apr 19, 2024
@carlocab
Copy link
Member

Please see the section on dealing with CI failures here: https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md

@LecrisUT
Copy link
Contributor Author

@carlocab I have been trying to bring to attention for 1-2 months now. But I am opening a dedicated issue, because I expect this to happen to a bunch more packages in the process of dealing with #167905 and it would be good to bring together ideas instead of having discussions on each individual package.

@LecrisUT
Copy link
Contributor Author

Resolved, I was setting an environment variable for all SETUPTOOLS_SCM_PRETEND_VERSION instead of SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TMT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

2 participants