Skip to content

Set minimal requirement of setuptools version >= 64.0.0#44

Merged
wkliao merged 2 commits intomainfrom
dep_ver_fix
Sep 4, 2024
Merged

Set minimal requirement of setuptools version >= 64.0.0#44
wkliao merged 2 commits intomainfrom
dep_ver_fix

Conversation

@Jonathanlyj
Copy link
Copy Markdown
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
Copy Markdown
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
@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