[Eric] Eric5 at Mac OS X / Homebrew
Detlev Offenbach
detlev at die-offenbachs.de
Tue Apr 8 18:07:38 BST 2014
Hello,
is it correct that 'prefix' is an environment variable that can be tested for with code like
if 'prefix' in os.environ:
Detlev
On Tuesday 08 April 2014, 18:43:58 Hirschfeld Michael wrote:
> 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/te
> stReport/junit/brew-test-bot/mavericks/install_eric5/ [3]
> https://github.com/Homebrew/homebrew/pull/28205
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric--
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20140408/3edda292/attachment.html>
More information about the Eric
mailing list