question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adapt build script for Mac

See original GitHub issue

Macos’ foundation is some BSD and hence find does not have -printf flag

I had to install findutils

brew install findutils

and set

export FIND=gfind

and patch deployment/deploy.sh

diff --git a/deployment/deploy.sh b/deployment/deploy.sh
index e160f3c..7e01d5b 100755
--- a/deployment/deploy.sh
+++ b/deployment/deploy.sh
@@ -5,6 +5,7 @@ CONTAINER_NAME=deploytest

 CQPARTS_ROOT=$(git rev-parse --show-toplevel)

+FIND=${FIND:-find}

 function show_help() {
     [ "$@" ] && echo "$@"
@@ -48,12 +49,12 @@ Arguments:

 Libraries Available for Deployment: {lib}
 EOF
-find ../src -maxdepth 1 -type d -name "cqparts*" -printf "    %P\n" | sort | grep -vP '^(.*\.egg-info|\s*)$'
+$FIND ../src -maxdepth 1 -type d -name "cqparts*" -printf "    %P\n" | sort | grep -vP '^(.*\.egg-info|\s*)$'
 cat << EOF

 Environments: {env}
 EOF
-find env -maxdepth 1 -type d -printf "    %P\n" | sort | grep -vP '^\s*$'
+$FIND env -maxdepth 1 -type d -printf "    %P\n" | sort | grep -vP '^\s*$'

 }

Not sure you’re interested in supporting Mac for builds (and I haven’t tested the whole docker stuff). However, maybe some macos user might find it helpful

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bernhard-42commented, Jan 28, 2019

Would it be an option to just create and then keep the latest setup.py in the repo? Then one could change some python code in his own fork and pip install it without bothering about the deploy.sh script

0reactions
fragmuffincommented, Jan 28, 2019

@bernhard-42 : I think that’s a good option. I’ve added that to the list of tasks in #79

Read more comments on GitHub >

github_iconTop Results From Across the Web

Porting Your macOS Apps to Apple Silicon
Overview. Port your existing macOS app to Apple silicon by creating a universal binary and modifying your code to handle architectural differences.
Read more >
Guide for Apple IT: Introduction to Mac Shell Scripts
Instead of composing scripts from scratch, you can find a working script that does something close to what you want and then adapt...
Read more >
Mac Adapt Build Issues (permissions part of it, I suspect)
Building into my user folder, after building none of the tools I'm using will let me write / save. Says I don't have...
Read more >
Building macOS apps with Flutter
This page discusses considerations unique to building macOS apps with Flutter, including shell integration and distribution of macOS apps through the Apple ...
Read more >
Formula Cookbook - Homebrew Documentation
Documentation for the missing package manager for macOS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found