diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -136,10 +136,10 @@ i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n # Packaging targets osx: - @which bdist_mpkg >/dev/null || \ + python -c 'import bdist_mpkg.script_bdist_mpkg' || \ (echo "Missing bdist_mpkg (easy_install bdist_mpkg)"; false) rm -rf dist/mercurial-*.mpkg - bdist_mpkg setup.py -- + python -m bdist_mpkg.script_bdist_mpkg setup.py -- mkdir -p packages/osx N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" -ov packages/osx/$$N.dmg rm -rf dist/mercurial-*.mpkg