Skip to content

Set minimal requirement of setuptools version >= 64.0.0 #44

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

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Conversation

Jonathanlyj
Copy link
Collaborator

An installation issue occurs when installing using setuptools<64.0.0 version. When a python virtual env is created, it can have setuptools==58 installed by default, which is not compatible with pip install -e. The following msg appears at installation and the installation is not successful.
DEPRECATION: Legacy editable install of pnetcdf==0.1.0 (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457

To fix this, just force upgrading python packaging libraries when installing dependencies. Alternative fix is to turn off editable mode.

@wkliao
Copy link
Member

wkliao commented Aug 30, 2024

Looks like we need a new GitHub action yaml file to test against
setuptools<64.0.0 version

@wkliao wkliao changed the title Fix installation issues with setuptools<64.0.0 Set minimal requirement of setuptools version >= 64.0.0 Sep 4, 2024
@wkliao wkliao merged commit 880a01b into main Sep 4, 2024
3 checks passed
@wkliao wkliao deleted the dep_ver_fix branch September 12, 2024 19:43
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.

2 participants