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

feat: Increase robustness of Python setup script #1249

Merged
merged 2 commits into from
May 17, 2022

Conversation

stephenswat
Copy link
Member

We've previously run into some minor issues with the Python setup script. This is only natural because shell scripting is hell, but we can still try to make it a little more robust. To this end, this commit adds two new features to the setup script:

  1. The setup script now supports ZSH as well as Bash, so it should also work on Mac operating systems.
  2. The script now tells the user which version of Python the bindings were set up for, so they don't run into versioning conflicts.

@stephenswat stephenswat added this to the next milestone May 11, 2022
@stephenswat stephenswat added Improvement Changes to an existing feature Impact - Minor Nuissance bug and/or affects only a single module Component - Examples Affects the Examples module labels May 11, 2022
@stephenswat
Copy link
Member Author

Wonderful, it looks like the Github runners are having some trouble. 😢

@codecov
Copy link

codecov bot commented May 11, 2022

Codecov Report

Merging #1249 (9b4eb00) into main (190d85b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1249   +/-   ##
=======================================
  Coverage   47.89%   47.89%           
=======================================
  Files         375      375           
  Lines       19588    19588           
  Branches     9214     9214           
=======================================
  Hits         9382     9382           
  Misses       3822     3822           
  Partials     6384     6384           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@paulgessinger
Copy link
Member

It's failing to download G4 data files from CERN. Should hopefully be transient.

@stephenswat stephenswat force-pushed the build/zsh_python_setup branch 2 times, most recently from 687531f to b69785f Compare May 11, 2022 09:42
Copy link
Contributor

@AJPfleger AJPfleger left a comment

Choose a reason for hiding this comment

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

Changes look good to me. The suggested change in the ERROR-message is imho very minor and may be ignored.

Examples/Python/setup.sh.in Outdated Show resolved Hide resolved
We've previously run into some minor issues with the Python setup
script. This is only natural because shell scripting is hell, but we can
still try to make it a little more robust. To this end, this commit adds
two new features to the setup script:

1. The setup script now supports ZSH as well as Bash, so it should also
   work on Mac operating systems.
2. The script now tells the user which version of Python the bindings
   were set up for, so they don't run into versioning conflicts.
Copy link
Member

@paulgessinger paulgessinger left a comment

Choose a reason for hiding this comment

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

👍

@kodiakhq kodiakhq bot merged commit de23d56 into acts-project:main May 17, 2022
@paulgessinger paulgessinger modified the milestones: next, v19.1.0 May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Component - Examples Affects the Examples module Impact - Minor Nuissance bug and/or affects only a single module Improvement Changes to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants