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

Fix setup.py install with old setuptools #306

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

bgilbert
Copy link
Member

We still need to support building distro packages with older setuptools that doesn't understand PEP 621. Re-add enough setup.py configuration (duplicating pyproject.toml) to make older setuptools happy.

Also work around a FileSystemLoader bug in Jinja2 < 2.11.0.

FileSystemLoader in Jinja2 < 2.11.0 (including on Ubuntu 20.04) fails to
wrap a single Path argument in a list because it thinks it's already a
sequence.  Work around this.

Signed-off-by: Benjamin Gilbert <[email protected]>
@openslide-bot
Copy link

openslide-bot commented Oct 30, 2024

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

We still need to support building distro packages with older setuptools
that doesn't understand PEP 621.  Re-add enough setup.py configuration
(duplicating pyproject.toml) to make older setuptools happy.

With setuptools >= 62.3.0, `setup.py install` will now warn about
duplicate specification of dependencies, but the warning is harmless:

    SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)

Signed-off-by: Benjamin Gilbert <[email protected]>
@bgilbert bgilbert merged commit 0da8347 into openslide:main Oct 30, 2024
53 checks passed
@bgilbert bgilbert deleted the setuptools branch October 30, 2024 19:32
@bgilbert bgilbert mentioned this pull request Oct 30, 2024
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants