Giter Club home page Giter Club logo

minipip's Introduction

minipip's People

Contributors

aivarannamaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

minipip's Issues

Make sure the right file gets downloaded when several files per release are published

Currently minipip only handles the case of single tar.gz file without setup.py in it (ie upip-packages) on its own. All other cases get delegated to pip.

There can be cases, when package publisher wants to provide different content for different targets. For example, most dependencies and content Adafruit-Blinka currently are not relevant for MicroPython.

I don't know whether someone has already used this approach, but according to PEP 425, the most natural thing to do is using separate wheels with micropython or circuitpython Python tag: https://www.python.org/dev/peps/pep-0425/#python-tag . Here is an experiment with this https://github.com/aivarannamaa/packaging_experiment.

If the communities accept this approach, then make sure minipip supports it.

Add `list` and `uninstall` commands

For this it is required to keep relevant files of *.dist-info (or *.egg-info) directories. Currently minipip deletes these directories after pip completes.

The list can be delegated to pip. pip list --path ... is happy, if only first few lines of the METADATA is kept, all other files can be deleted.

minipip uninstall --path ... can be based on the RECORD file. pip uninstall doesn't currently offer similar --path flag, but it should not be hard to reimplement in minipip.

For upip packages PKG-INFO needs to be renamed to METADATA (TODO: check whether pip list accepts PKG-INFO as well) and RECORD should be recreated.

Don't install Adafruit-Blinka dependency

The dependencies in Adafruit CircuitPython libraries at PyPI assume CPython target. As long as Adafruit doesn't publish different wheels for different targets (#5), a work-around is needed.

My idea is to pre-populate temporary target directory with (fake and empty?) Blinka installation, so that pip skips installing it. It is not clear, which version to assign for it, though... Latest stable version? When copying files over to the target device, minipip would simply skip Blinka.

MicroPython targets could benefit from (part of) Blinka, but they don't require Blinka's deps. For now, I'm skipping Blinka for MicroPython as well, as picking required parts would be more complex and I'm not sure how many people are interested in it anyway.

Make sure correct dependencies are selected if `implementation_name` environment marker is used

Currently pip does not have means for overriding the value of implementation_name when filtering dependencies. In particular, --implementation option does not work for this. See pypa/pip#9981 for discussion.

I suppose this issue can't progress until pip starts supporting overriding markers. I could try patching sys.implementation.name, but even if it works with current version of pip, this hack is not guaranteed to work in the future.

CircuitPython no such option: --no-compile

Thanks for working on this!

I'm on Fedora Silverblue 34, using Python version 3.9.6 and pip 21.0.1.
When I attempt to install CircuitPython libraries, I receive the following error message.

$ minipip install --port /dev/ttyACM1 --target /lib adafruit-circuitpython-framebuf
Processing 'adafruit-circuitpython-framebuf'
Querying package metadata from https://micropython.org/pi/adafruit-circuitpython-framebuf/json
Could not find 'adafruit-circuitpython-framebuf' from https://micropython.org/pi
Querying package metadata from https://pypi.org/pypi/adafruit-circuitpython-framebuf/json
Inspecting version 1.4.7
Installing with pip: ['adafruit-circuitpython-framebuf']

Usage:   
  /usr/bin/python3 -m pip <command> [options]

no such option: --no-compile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.