Mercurial > public > mercurial-scm > hg-stable
changeset 52727:77061208eafe
makefile: replace `setup.py install` by `pip install`
author | paugier <pierre.augier@univ-grenoble-alpes.fr> |
---|---|
date | Thu, 30 Jan 2025 10:07:57 +0100 |
parents | 07ac8528eed8 |
children | 9e6b36ee2f5c |
files | Makefile |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Jan 27 15:13:42 2025 +0100 +++ b/Makefile Thu Jan 30 10:07:57 2025 +0100 @@ -43,7 +43,7 @@ @echo 'Commonly used make targets:' @echo ' all - build program and documentation' @echo ' install - install program and man pages to $$PREFIX ($(PREFIX))' - @echo ' install-home - install with setup.py install --home=$$HOME ($(HOME))' + @echo ' install-home - install with pip install --user' @echo ' local - build for inplace usage' @echo ' tests - run all tests in the automatic test suite' @echo ' test-foo - run only specified tests (e.g. test-merge1.t)' @@ -101,8 +101,8 @@ install: install-bin install-doc -install-bin: build - $(PYTHON) setup.py $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --force +install-bin: + $(PYTHON) -m pip install --prefix="$(PREFIX)" --force -v --config-settings --global-option=$(PURE) install-chg: build-chg make -C contrib/chg install PREFIX="$(PREFIX)" @@ -112,8 +112,8 @@ install-home: install-home-bin install-home-doc -install-home-bin: build - $(PYTHON) setup.py $(PURE) install --home="$(HOME)" --prefix="" --force +install-home-bin: + $(PYTHON) -m pip install --user --force -v --config-settings --global-option=$(PURE) install-home-doc: doc cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install