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

pip install library_name -t /volumes/CircuitPython/lib/ installs blinka and core modules #151

Open
askpatrickw opened this issue Jul 26, 2022 · 0 comments

Comments

@askpatrickw
Copy link
Contributor

askpatrickw commented Jul 26, 2022

No good to place to open this really, so putting in circup for discussion.

Now that all libraries are available on PyPi, you can install libraries with pip.
ex: pip install adafruit_circuitpython -t /volumes/CircuitPython/lib/

Issues with this :

  1. You don't get the .mpy version
  2. You also get Blinka and core modules

I believe this was done to support Thonny.
Dos Thonny also install the .py version? Does it ignore the Blinka dependencies (like circup does)?

pip install adafruit_circuitpython_requests -t /Volumes/CIRCUITPY/lib/
Collecting adafruit_circuitpython_requests
  Using cached adafruit-circuitpython-requests-1.12.4.tar.gz (42 kB)
  Preparing metadata (setup.py) ... done
Collecting Adafruit-Blinka
  Using cached Adafruit-Blinka-8.1.0.tar.gz (190 kB)
  Preparing metadata (setup.py) ... done
Collecting Adafruit-PlatformDetect>=3.13.0
  Using cached Adafruit-PlatformDetect-3.26.0.tar.gz (40 kB)
  Preparing metadata (setup.py) ... done
Collecting Adafruit-PureIO>=1.1.7
  Using cached Adafruit_PureIO-1.1.9-py3-none-any.whl
Collecting pyftdi>=0.40.0
  Using cached pyftdi-0.54.0-py3-none-any.whl (144 kB)
Collecting adafruit-circuitpython-typing
  Using cached adafruit_circuitpython_typing-1.7.1-py3-none-any.whl
Collecting pyserial>=3.0
  Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting pyusb!=1.2.0,>=1.0.0
  Using cached pyusb-1.2.1-py3-none-any.whl (58 kB)
Collecting adafruit-circuitpython-busdevice
  Using cached adafruit_circuitpython_busdevice-5.1.10-py3-none-any.whl
Using legacy 'setup.py install' for adafruit_circuitpython_requests, since package 'wheel' is not installed.
Using legacy 'setup.py install' for Adafruit-Blinka, since package 'wheel' is not installed.
Using legacy 'setup.py install' for Adafruit-PlatformDetect, since package 'wheel' is not installed.
Installing collected packages: pyserial, pyusb, Adafruit-PureIO, Adafruit-PlatformDetect, pyftdi, adafruit-circuitpython-busdevice, adafruit-circuitpython-typing, Adafruit-Blinka, adafruit_circuitpython_requests
  Running setup.py install for Adafruit-PlatformDetect ... done
  Running setup.py install for Adafruit-Blinka ... done
  Running setup.py install for adafruit_circuitpython_requests ... done
Successfully installed Adafruit-Blinka-8.1.0 Adafruit-PlatformDetect-3.26.0 Adafruit-PureIO-1.1.9 adafruit-circuitpython-busdevice-5.1.10 adafruit-circuitpython-typing-1.7.1 adafruit_circuitpython_requests-1.12.4 pyftdi-0.54.0 pyserial-3.5 pyusb-1.2.1


ls /Volumes/CIRCUITPY/lib

Adafruit_Blinka-8.1.0-py3.9.egg-info                  circuitpython_typing
Adafruit_PlatformDetect-3.26.0-py3.9.egg-info         digitalio.py
Adafruit_PureIO                                       keypad.py
Adafruit_PureIO-1.1.9.dist-info                       microcontroller
__pycache__                                           micropython.py
adafruit_blinka                                       neopixel_write.py
adafruit_bus_device                                   onewireio.py
adafruit_circuitpython_busdevice-5.1.10.dist-info     pulseio.py
adafruit_circuitpython_requests-1.12.4-py3.9.egg-info pwmio.py
adafruit_circuitpython_typing-1.7.1.dist-info         pyftdi
adafruit_platformdetect                               pyftdi-0.54.0.dist-info
adafruit_requests.py                                  pyserial-3.5.dist-info
analogio.py                                           pyusb-1.2.1.dist-info
bin                                                   rainbowio.py
bitbangio.py                                          serial
board.py                                              usb
busio.py                                              usb_hid.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant