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

Fix sed syntax and macOS bundle names with spaces #158

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Jan 19, 2024

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

Yet another fix:

  • Fix issue with sed syntax
  • Fix command quotes to accommodate bundle names with spaces for macOS

$(dirname $0) allows bundle portablility (user renames bundle), but shell script requires "$(dirname "$0")" (yes, 2 sets of double quotes) if there is a space in the path. Unfortunately, menuisnt tries to be clever and quote the command, but does so incorrectly.
$(dirname $0)/python -> "$(dirname $0)/python"
$(dirname \"$0\")/python -> '$(dirname "$0")/python'
\"$(dirname \"$0\")/python\" -> '"$(dirname "$0")/python"'
The workaround is to use the precommand directive. Here menuinst does not try to clever quote and we can pushd to the directory.
@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@mrclary mrclary marked this pull request as ready for review January 25, 2024 23:38
@ccordoba12
Copy link
Contributor

@mrclary, is this ready to be merged?

@mrclary
Copy link
Contributor Author

mrclary commented Jan 26, 2024

@mrclary, is this ready to be merged?

Yes.

Copy link
Contributor

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @mrclary!

@ccordoba12 ccordoba12 merged commit 8f7bf64 into conda-forge:dev Jan 26, 2024
21 checks passed
@mrclary mrclary deleted the post-link-fix branch January 27, 2024 01:18
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.

2 participants