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

Legacy editable installs with pip are deprecated #1153

Open
Brow71189 opened this issue Sep 11, 2024 · 0 comments
Open

Legacy editable installs with pip are deprecated #1153

Brow71189 opened this issue Sep 11, 2024 · 0 comments

Comments

@Brow71189
Copy link
Collaborator

Brow71189 commented Sep 11, 2024

Following the instructions for a developer installation from our wiki https://github.com/nion-software/nionswift/wiki/Developer-installation#installation-notes:

# editable install type checking: see https://github.com/python/mypy/issues/13392
# use the following line on macos before running the commands below
export SETUPTOOLS_ENABLE_FEATURES="legacy-editable"
# use the following line on windows
set SETUPTOOLS_ENABLE_FEATURES=legacy-editable

python -m pip install --no-deps --editable nionutils
python -m pip install --no-deps --editable niondata
python -m pip install --no-deps --editable nionui
python -m pip install --no-deps --editable nionswift
python -m pip install --no-deps --editable nionswift-io
python -m pip install --no-deps --editable nionswift-instrumentation-kit
python -m pip install --no-deps --editable nionswift-video-capture
python -m pip install --no-deps --editable nionswift-eels-analysis
python -m pip install --no-deps --editable nionswift-experimental

Leads to the following deprecation warning with latest pip (24.2):

DEPRECATION: Legacy editable install of nionutils==4.11.0 from file:///C:/Users/andreas.mittelberger/git/nionutils (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 pypa/pip#11457

For now everything works fine, but I just wanted to bring this to our attention here so that we don't get surprised by this behaviour change in pip 25.0.

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

No branches or pull requests

1 participant