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

Shebang not updated when changing python interpreter #96

Closed
1 task done
jmfederico opened this issue Apr 3, 2020 · 0 comments · Fixed by #98
Closed
1 task done

Shebang not updated when changing python interpreter #96

jmfederico opened this issue Apr 3, 2020 · 0 comments · Fixed by #98
Labels
⭐ enhancement Improvements for existing features

Comments

@jmfederico
Copy link

  • I have searched the issue tracker and believe that this is not a duplicate.

Steps to reproduce

After having a project initialized:

  • Install any package that includes a binary. Example pdm add invoke
  • Change the python interpreter for the project with pdm use /a/different/python

Actual behavior

  • Check the Shebang on the scripts under pypackages/x.x/bin/ and notice that all still use the old python path.

Expected behavior

The Shebangs for all the binaries for the newly selected mayor.minor version of the interpreter should be updated.

Only binaries for the NEW mayor.minor interpreter should be updated.

Environment Information

pdm version:

Python Interpreter: /Users/user/.pyenv/versions/3.8/bin/python3.8 (3.8.2)
Project Root:       /Users/user/development/pdm-test
{
  "implementation_name": "cpython",
  "implementation_version": "3.8.2",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "19.4.0",
  "platform_system": "Darwin",
  "platform_version": "Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64",
  "python_full_version": "3.8.2",
  "platform_python_implementaiton": "CPython",
  "python_version": "3.8",
  "sys_platform": "darwin"
}
@jmfederico jmfederico added the 🐛 bug Something isn't working label Apr 3, 2020
@frostming frostming added ⭐ enhancement Improvements for existing features and removed 🐛 bug Something isn't working labels Apr 4, 2020
@frostming frostming mentioned this issue Apr 7, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants