Makefile
branchstable
changeset 23932 d7a90949fc18
parent 23931 f86060e2b5e1
child 23940 d0ef40776999
--- a/Makefile	Wed Jan 21 05:04:46 2015 +0100
+++ b/Makefile	Wed Jan 21 05:04:48 2015 +0100
@@ -136,10 +136,10 @@
 # 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