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

layers/meta-opentrons: binding for opentrons cli #154

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

sfoster1
Copy link
Member

@sfoster1 sfoster1 commented Jul 1, 2024

Add explicit executable shell scripts for opentrons_simulate and opentrons_execute.

Normally, when you install python packages that have script entrypoints, the install process will generate the scripts and put them in the appropriate place. Here, we have a separate python environment in a special directory that the system doesn't know about - it's used by setting environment variables in systemd units. That means the installation won't work. So we do it ourself here.

Closes RESC-285

These bindings aren't installing from python properly, this will
manually add them.

Closes RESC-285
@sfoster1 sfoster1 requested review from ryanthecoder and vegano1 July 1, 2024 17:17
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
export RUNNING_ON_VERDIN=1
export OT_API_FF_enableOT3HardwareController="true"
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be false for simulate?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this is always true - this put it into "flex mode", it's not about controller vs simulator but about ot2 controller vs flex controller

@y3rsh
Copy link
Member

y3rsh commented Jul 1, 2024

Can you explain how this fixes the issue and then in what context these 2 files will be run?
Why are we fixing it here and not in the package?

Copy link
Contributor

@ryanthecoder ryanthecoder 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 to me

@sfoster1
Copy link
Member Author

Can you explain how this fixes the issue and then in what context these 2 files will be run? Why are we fixing it here and not in the package?

updated the pr description

@sfoster1 sfoster1 merged commit 20b4338 into main Jul 16, 2024
3 checks passed
@sfoster1 sfoster1 deleted the RESC-285-add-commands-for-execute branch July 16, 2024 18:00
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.

4 participants