You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing the wheel, the console_script is overwriting the hand-written code in scripts/dbt. pip should not be overwriting files during installation and will begin to log warnings at some point in future. See: pypa/pip#4625 (comment)
You can confirm this by installing dbt-core into a venv. The contents of the dbt script is an autogenerated console_script defined in entry_points and not the handwritten script.
Expected Behavior
There should only be a single script (probably the entry_point console script) which is currently the one that is installed.
@groodt Thank you for pointing this out, and creating an associated PR! I have been following along on the PR side, and will close this issue once that work is merged 🥳
Is there an existing issue for this?
Current Behavior
There is a duplicate dbt script entry in setup.py
When installing the wheel, the console_script is overwriting the hand-written code in scripts/dbt. pip should not be overwriting files during installation and will begin to log warnings at some point in future. See: pypa/pip#4625 (comment)
You can confirm this by installing dbt-core into a venv. The contents of the dbt script is an autogenerated console_script defined in entry_points and not the handwritten script.
Expected Behavior
There should only be a single script (probably the entry_point console script) which is currently the one that is installed.
Steps To Reproduce
No response
Relevant log output
No response
Environment
What database are you using dbt with?
No response
Additional Context
See #5304
The text was updated successfully, but these errors were encountered: