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

pio dependency installation on linux compiles all packages from source, ignoring wheels in pypi and piwheels #4493

Closed
1 task done
yschroeder opened this issue Dec 15, 2022 · 3 comments
Milestone

Comments

@yschroeder
Copy link

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

Configuration

Operating system:
Debian GNU/Linux 11 (bullseye) on a Raspberry Pi 3B

PlatformIO Version (platformio --version):
6.1.5

Description of problem

When running pio remote agent start, dependencies are installed via pip. Due to

if "linux" in systype:
args.extend(["--no-binary", ":all:"])

all packages are ALWAYS compiled from source which is extremely slow and annoying especially on slow hardware. It ignores all wheels in both, the pypi and piwheels index.

Steps to Reproduce

  1. Run pio remote agent start
  2. Wait an eternity for all packages to compile
  3. Have everything recompiled when pio decided to update something

Actual Results

pip compiles all packages from source.

Expected Results

pip uses wheels when available.

Workaround

Comment out both lines mentioned above. pip uses wheels for everything and installation is very fast.

@yschroeder
Copy link
Author

Digging deeper, this change was introduced to fix #3652.

However, I managed to use the remote agent on a Raspberry Pi with the wheel of cryptography, so maybe the issue is fixed?

@yschroeder
Copy link
Author

@ivankravets you marked this as known issue. Do you have a link to the other issue?

Is there anything I can do to help here? The issue still exists in version 6.1.6.

@ivankravets ivankravets added this to the 6.1.7 milestone Apr 26, 2023
@ivankravets
Copy link
Member

Now dependencies will be built on the target side. Please re-test with pio upgrade --dev. Does it work now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants