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

Better error message when build dependencies not satisfied #1628

Merged
merged 1 commit into from
Feb 14, 2020
Merged

Better error message when build dependencies not satisfied #1628

merged 1 commit into from
Feb 14, 2020

Conversation

gaborbernat
Copy link
Contributor

@gaborbernat gaborbernat commented Feb 14, 2020

This only manifests on old platforms, but as we still support them
makes sense to provide better error messages, and relax a bit our
build requirements.

To validate using the docker build:

FROM pycontribs/centos:7
COPY . /w
RUN pip install 'setuptools==41.0.0' 'setuptools_scm==2'
RUN pip install /w -vvv --no-deps --disable-pip-version-check
RUN pip freeze 

Resolves #1621

]
build-backend = 'setuptools.build_meta'

[tool.setuptools_scm]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly using the toml config degrades really bad on old platforms, so we've dropped it's usage in line with https://github.com/pypa/setuptools_scm#setuppy-usage

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pradyunsg 😢

@@ -0,0 +1,2 @@
Fail with better error message if trying to install source with unsupported ``setuptools``, allow ``setuptools-scm >= 2``
and move to legacy ``setuptools-scm`` format to support better older platforms (``CentOs`` and such) - by :user:`gaborbernat`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct it to CentOS 7 (case), the 8 is in much better shape.

This only manifests on old platforms, but as we still support them
makes sense to provide better error messages, and relax a bit our
build requirements.

Signed-off-by: Bernat Gabor <[email protected]>
@gaborbernat gaborbernat merged commit 1d9b7d1 into pypa:master Feb 14, 2020
@gaborbernat gaborbernat deleted the 1621 branch February 14, 2020 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail with better error message if our build requirements are not satisfied
2 participants