[Eric] Eric5 at Mac OS X / Homebrew

Hirschfeld Michael industrie13 at gmx.net
Tue Apr 8 17:43:58 BST 2014


Hi,

currently I wrote a 'formula/receipt' for the Homebrew package manager to build and install eric5 at OS X [1].

It builds and installs fine except for one thing. Homebrew installs all software into its own 'prefix' in '/usr/local' and almost all of eric5-files also went there. But the target for the application bundle is hardcoded in install.py and installs Eric5 in /Applications regardless of the prefix:

def createMacAppBundle(pydir):
   """
   Create a Mac application bundle.

   @param pydir the name of the directory where the Python script will
       eventually be installed (string)
   """
   global cfg, sourceDir, macAppBundleName, macPythonExe

   dirs = {"contents": "/Applications/{0}/Contents/".format(macAppBundleName),
           "exe": "/Applications/{0}/Contents/MacOS".format(macAppBundleName),
           "icns": "/Applications/{0}/Contents/Resources".format(
               macAppBundleName)}
   os.makedirs(dirs["contents"])
   os.mkdir(dirs["exe"])
   os.mkdir(dirs["icns"])

So the Homebrew test bot failed with a "PermissionError: [Errno 13] Permission denied: '/Applications/eric5.app'" [2]
You can follow the discussion from the pull request at [3].

Any chance to get the install target changed, maybe by a conditional test a'la
if $prefix is set
  install in $prefix
else
   install in /Applications


Thanks,
Michael



[1] https://github.com/Homebrew/homebrew/pull/28205/commits
[2] http://bot.brew.sh/job/Homebrew%20Pull%20Requests/9512/version=mavericks/testReport/junit/brew-test-bot/mavericks/install_eric5/
[3] https://github.com/Homebrew/homebrew/pull/28205


More information about the Eric mailing list