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

Enable architecture-specific installs #65

Open
1 of 2 tasks
thclark opened this issue Jun 9, 2022 · 1 comment
Open
1 of 2 tasks

Enable architecture-specific installs #65

thclark opened this issue Jun 9, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@thclark
Copy link
Contributor

thclark commented Jun 9, 2022

Bug report

We're unable to get poetry to install the gateway on mac M1, x86_84 and armv7l (rPi), because: poetry doesn't allow specification of different sources for different architectures - adding multiple sources is riddled with problems in poetry

  • So, grpcio won't install on rPi, because pypi doesn't have a binary for armv7l
  • This is unlike pip, which on rPi uses piwheels preferentially (see /etc/pip.conf on the rPi) to fetch the wheels

Plan

CI + development on mac M1 and Windows machines

poetry install

rPi development

poetry export -f requirements.txt --output requirements.txt --dev --without-hashes && pip install -r requirements.txt`

rPi production

pip install <data_gateway_url>

Test how pip uses pyproject.toml
Test if pip installing from the data gateway repo (per the installation instructions for deploying):

  • Works on all three platforms
  • Installs only production dependencies, not devdependencies
@cortadocodes
Copy link
Member

I can confirm the gateway installs and works on M1 Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants