qiskit-metal icon indicating copy to clipboard operation
qiskit-metal copied to clipboard

Legacy editable install deprecation

Open SamWolski opened this issue 9 months ago • 2 comments
trafficstars

Information

  • Qiskit Metal version: 0.1.5
  • Python version: 3.10.16
  • Operating system: macOS Sequoia 15.3

What is the current behavior?

Attempting to perform an editable pip install from a local file results in a deprecation warning from pip/setuptools.

DEPRECATION: Legacy editable install of qiskit_metal==0.1.5 from file://<...>/qiskit-metal (setup.py develop) is deprecated. pip 25.1 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

Steps to reproduce the problem

  1. Clone the qiskit-metal repository to a local folder
  2. Attempt to install using pip install -e <path-to-repo>

What is the expected behavior?

Setup definitions for the qiskit-metal package should not trigger the deprecation warning.

Suggested solutions

Define package setup using pyproject.toml instead of setup.py

SamWolski avatar Jan 29 '25 19:01 SamWolski

Let’s see if we have addressed this in pull request #1002, any help is appreciated Sent from my iPhoneOn Jan 29, 2025, at 2:20 PM, Sam Wolski @.***> wrote: Information

Qiskit Metal version: 0.1.5 Python version: 3.10.16 Operating system: macOS Sequoia 15.3

What is the current behavior? Attempting to perform an editable pip install from a local file results in a deprecation warning from pip/setuptools. DEPRECATION: Legacy editable install of qiskit_metal==0.1.5 from file://<...>/qiskit-metal (setup.py develop) is deprecated. pip 25.1 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

Steps to reproduce the problem

Clone the qiskit-metal repository to a local folder Attempt to install using pip install -e

What is the expected behavior? Setup definitions for the qiskit-metal package should not trigger the deprecation warning. Suggested solutions Define package setup using pyproject.toml instead of setup.py

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

zlatko-minev avatar Jan 31 '25 04:01 zlatko-minev

It is not currently addressed; the same message pops up on the PR fork.

SamWolski avatar Jan 31 '25 15:01 SamWolski