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

Install the PYPI version of library locally when installing CP version #140

Open
askpatrickw opened this issue Feb 3, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@askpatrickw
Copy link
Contributor

askpatrickw commented Feb 3, 2022

Proposed option to the install command
circup install adafruit_ble_broadcastnet --pypi

Proposed Behavior

This is only for install command only:

  • If --pypi option is specified, also pip3 install {pypi_name} the library as specified in the bundle.json
  • If No pypi library is available, report a warning, but complete all other actions

Notes

I was playing around with the autocomplete\stubs functionality in VSCode's Pylance, and if you pip install the CPython version of a CP package, VS Code will pickup that up and and not give a reportMissingImports error.

Also required:

  1. Install Python Extension (which includes Pylance)
  2. Set python.analysis.stubPath to site packages for your python environment. ex for Pyenv in a cp_base virtualenv on MacOS: /Users/username/.pyenv/versions/cp_base/lib/python3.9/site-packages/

Update learn guide if implemented Welcome To CP

  • I bet the PyCharm information can be updated
  • Add a VS Code section
@askpatrickw askpatrickw added the enhancement New feature or request label Feb 3, 2022
@askpatrickw askpatrickw changed the title When installing a library, also support installing the PYPI version on the dev workstation Installing the PYPI version of library locally when installing CP version Feb 3, 2022
@askpatrickw askpatrickw added the help wanted Extra attention is needed label Feb 3, 2022
@askpatrickw askpatrickw changed the title Installing the PYPI version of library locally when installing CP version Install the PYPI version of library locally when installing CP version Feb 3, 2022
@askpatrickw
Copy link
Contributor Author

@FoamyGuy I think you're a big PyCharm user... would this help in that workflow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant