Skip to content

build_bundles: Ignore more packages that exist only on pypi #90

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

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

jepler
Copy link
Contributor

@jepler jepler commented Jul 18, 2022

…and sort the existing list and use 'normalized' names

The implementation of normalize_dist_name is taken from pipkin. @aivarannamaa hopefully you can update this list once this PR is confirmed and merged.

@ladyada pipkin copies this list so we should make sure it's up to date on our end!

This list is based on all lines we list in a "requirements.txt" in the adafruit bundle, minutes the ones named adafruit-circuitpython-. Plus numpy and scipy which aren't actually USED at this time, but are added speculatively since dual-purpose code can work with ulab or with numpy.

…and sort the existing list and use 'normalized' names

The implementation of normalize_dist_name is taken from pipkin.
@jepler jepler requested a review from makermelissa July 18, 2022 17:59
Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I just noticed you had adafruit_circuitpython_busdevice. Is this not a CircuitPython library? Or perhaps it's always built in now so are we just not using it anymore?

This is a weird one since some devices have it in core now, and others don't.

This happened in part because I copypasted the list currently in pipkin instead of tweaking the existing list, which was initially added with this module in the list: aivarannamaa/pipkin@b995713
@makermelissa makermelissa merged commit 97895d2 into main Jul 18, 2022
@aivarannamaa
Copy link

To be clear -- is it OK if pipkin always installs adafruit_bus_device if it's specified as dependency and simply ignores the warning at https://pypi.org/project/adafruit-circuitpython-busdevice/#description:

If both the builtin and add-on adafruit_bus_device packages are present, then some libraries that require this package might have problems importing it.

?

Do you know what exactly could this potential problem be?

@jepler
Copy link
Contributor Author

jepler commented Jul 20, 2022

I'm not sure what that text means. From my understanding depending on the content of sys.path one will be preferred to the other.

@dhalbert dhalbert deleted the ignore-more-package-names branch October 27, 2023 19:17
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

Successfully merging this pull request may close these issues.

3 participants