pypa / packaging-problems

An issue tracker for the problems in packaging
151 stars 35 forks source link

Console scripts from pip install using debug Python does not point to debug executable #768

Open Holt59 opened 5 months ago

Holt59 commented 5 months ago

Problem description

Follow-up from https://github.com/pypa/setuptools/issues/4418, this is actually the opposite of https://github.com/pypa/packaging-problems/issues/693

When installing a simple package with console script, e.g.

from setuptools import setup

setup(
    name="package",
    version="0.0.1",
    entry_points={"console_scripts": ["test_python_debug_main = package.main:main"]},
)

using python_d.exe -m pip install ..., the generated .exe wrapper point to python.exe instead of python_d.exe.