Mercurial > hg
comparison Makefile @ 23932:d7a90949fc18 stable
osx: use bdist_mpkg.script_bdist_mpkg module instead of bdist_mpkg command
It seems like a default installation of bdist_mpkg makes it available as
Python module, but the corresponding executable is placed in a location like
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/bin which is
not in $PATH and thus not directly available. 'make osx' would thus fail.
Instead, skip the bdist_mpkg executable and invoke it as a Python module. That
works out of the box here.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 21 Jan 2015 05:04:48 +0100 |
parents | f86060e2b5e1 |
children | d0ef40776999 |
comparison
equal
deleted
inserted
replaced
23931:f86060e2b5e1 | 23932:d7a90949fc18 |
---|---|
134 mv -f $@.tmp $@ | 134 mv -f $@.tmp $@ |
135 | 135 |
136 # Packaging targets | 136 # Packaging targets |
137 | 137 |
138 osx: | 138 osx: |
139 @which bdist_mpkg >/dev/null || \ | 139 python -c 'import bdist_mpkg.script_bdist_mpkg' || \ |
140 (echo "Missing bdist_mpkg (easy_install bdist_mpkg)"; false) | 140 (echo "Missing bdist_mpkg (easy_install bdist_mpkg)"; false) |
141 rm -rf dist/mercurial-*.mpkg | 141 rm -rf dist/mercurial-*.mpkg |
142 bdist_mpkg setup.py -- | 142 python -m bdist_mpkg.script_bdist_mpkg setup.py -- |
143 mkdir -p packages/osx | 143 mkdir -p packages/osx |
144 N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" -ov packages/osx/$$N.dmg | 144 N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" -ov packages/osx/$$N.dmg |
145 rm -rf dist/mercurial-*.mpkg | 145 rm -rf dist/mercurial-*.mpkg |
146 | 146 |
147 fedora20: | 147 fedora20: |