Show More
@@ -1,272 +1,268 b'' | |||
|
1 | 1 | # If you want to change PREFIX, do not just edit it below. The changed |
|
2 | 2 | # value wont get passed on to recursive make calls. You should instead |
|
3 | 3 | # override the variable on the command like: |
|
4 | 4 | # |
|
5 | 5 | # % make PREFIX=/opt/ install |
|
6 | 6 | |
|
7 | 7 | export PREFIX=/usr/local |
|
8 | 8 | |
|
9 | 9 | # Default to Python 3. |
|
10 | 10 | # |
|
11 | 11 | # Windows ships Python 3 as `python.exe`. |
|
12 | 12 | ifeq ($(OS),Windows_NT) |
|
13 | 13 | PYTHON?=python |
|
14 | 14 | else |
|
15 | 15 | PYTHON?=python3 |
|
16 | 16 | endif |
|
17 | 17 | |
|
18 | 18 | PYOXIDIZER?=pyoxidizer |
|
19 | 19 | |
|
20 | 20 | $(eval HGROOT := $(shell pwd)) |
|
21 | 21 | HGPYTHONS ?= $(HGROOT)/build/pythons |
|
22 | 22 | PURE= |
|
23 | 23 | PYFILESCMD=find mercurial hgext doc -name '*.py' |
|
24 | 24 | PYFILES:=$(shell $(PYFILESCMD)) |
|
25 | 25 | DOCFILES=mercurial/helptext/*.txt |
|
26 | 26 | export LANGUAGE=C |
|
27 | 27 | export LC_ALL=C |
|
28 | 28 | TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
|
29 | 29 | OSXVERSIONFLAGS ?= $(shell echo $$OSXVERSIONFLAGS) |
|
30 | 30 | CARGO = cargo |
|
31 | 31 | |
|
32 | 32 | # Set this to e.g. "mingw32" to use a non-default compiler. |
|
33 | 33 | COMPILER= |
|
34 | 34 | |
|
35 | 35 | COMPILERFLAG_tmp_ = |
|
36 | 36 | COMPILERFLAG_tmp_${COMPILER} ?= -c $(COMPILER) |
|
37 | 37 | COMPILERFLAG=${COMPILERFLAG_tmp_${COMPILER}} |
|
38 | 38 | |
|
39 | 39 | help: |
|
40 | 40 | @echo 'Commonly used make targets:' |
|
41 | 41 | @echo ' all - build program and documentation' |
|
42 | 42 | @echo ' install - install program and man pages to $$PREFIX ($(PREFIX))' |
|
43 | 43 | @echo ' install-home - install with setup.py install --home=$$HOME ($(HOME))' |
|
44 | 44 | @echo ' local - build for inplace usage' |
|
45 | 45 | @echo ' tests - run all tests in the automatic test suite' |
|
46 | 46 | @echo ' test-foo - run only specified tests (e.g. test-merge1.t)' |
|
47 | 47 | @echo ' dist - run all tests and create a source tarball in dist/' |
|
48 | 48 | @echo ' clean - remove files created by other targets' |
|
49 | 49 | @echo ' (except installed files or dist source tarball)' |
|
50 | 50 | @echo ' update-pot - update i18n/hg.pot' |
|
51 | 51 | @echo |
|
52 | 52 | @echo 'Example for a system-wide installation under /usr/local:' |
|
53 | 53 | @echo ' make all && su -c "make install" && hg version' |
|
54 | 54 | @echo |
|
55 | 55 | @echo 'Example for a local installation (usable in this directory):' |
|
56 | 56 | @echo ' make local && ./hg version' |
|
57 | 57 | |
|
58 | 58 | all: build doc |
|
59 | 59 | |
|
60 | 60 | local: |
|
61 | 61 | $(PYTHON) setup.py $(PURE) \ |
|
62 | 62 | build_py -c -d . \ |
|
63 | 63 | build_ext $(COMPILERFLAG) -i \ |
|
64 | 64 | build_hgexe $(COMPILERFLAG) -i \ |
|
65 | 65 | build_mo |
|
66 | 66 | env HGRCPATH= $(PYTHON) hg version |
|
67 | 67 | |
|
68 | 68 | build: |
|
69 | 69 | $(PYTHON) setup.py $(PURE) build $(COMPILERFLAG) |
|
70 | 70 | |
|
71 | 71 | wheel: |
|
72 | 72 | FORCE_SETUPTOOLS=1 $(PYTHON) setup.py $(PURE) bdist_wheel $(COMPILERFLAG) |
|
73 | 73 | |
|
74 | 74 | doc: |
|
75 | 75 | $(MAKE) -C doc |
|
76 | 76 | |
|
77 | 77 | cleanbutpackages: |
|
78 | 78 | rm -f hg.exe |
|
79 | 79 | -$(PYTHON) setup.py clean --all # ignore errors from this command |
|
80 | 80 | find contrib doc hgext hgext3rd i18n mercurial tests hgdemandimport \ |
|
81 | 81 | \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';' |
|
82 | 82 | rm -f MANIFEST MANIFEST.in hgext/__index__.py tests/*.err |
|
83 | 83 | rm -f mercurial/__modulepolicy__.py |
|
84 | 84 | if test -d .hg; then rm -f mercurial/__version__.py; fi |
|
85 | 85 | rm -rf build mercurial/locale |
|
86 | 86 | $(MAKE) -C doc clean |
|
87 | 87 | $(MAKE) -C contrib/chg distclean |
|
88 | 88 | rm -rf rust/target |
|
89 | 89 | rm -f mercurial/rustext.so |
|
90 | 90 | |
|
91 | 91 | clean: cleanbutpackages |
|
92 | 92 | rm -rf packages |
|
93 | 93 | |
|
94 | 94 | install: install-bin install-doc |
|
95 | 95 | |
|
96 | 96 | install-bin: build |
|
97 | 97 | $(PYTHON) setup.py $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --force |
|
98 | 98 | |
|
99 | 99 | install-doc: doc |
|
100 | 100 | cd doc && $(MAKE) $(MFLAGS) install |
|
101 | 101 | |
|
102 | 102 | install-home: install-home-bin install-home-doc |
|
103 | 103 | |
|
104 | 104 | install-home-bin: build |
|
105 | 105 | $(PYTHON) setup.py $(PURE) install --home="$(HOME)" --prefix="" --force |
|
106 | 106 | |
|
107 | 107 | install-home-doc: doc |
|
108 | 108 | cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install |
|
109 | 109 | |
|
110 | 110 | MANIFEST-doc: |
|
111 | 111 | $(MAKE) -C doc MANIFEST |
|
112 | 112 | |
|
113 | 113 | MANIFEST.in: MANIFEST-doc |
|
114 | 114 | hg manifest | sed -e 's/^/include /' > MANIFEST.in |
|
115 | 115 | echo include mercurial/__version__.py >> MANIFEST.in |
|
116 | 116 | sed -e 's/^/include /' < doc/MANIFEST >> MANIFEST.in |
|
117 | 117 | |
|
118 | 118 | dist: tests dist-notests |
|
119 | 119 | |
|
120 | 120 | dist-notests: doc MANIFEST.in |
|
121 | 121 | TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist |
|
122 | 122 | |
|
123 | 123 | check: tests |
|
124 | 124 | |
|
125 | 125 | tests: |
|
126 | 126 | # Run Rust tests if cargo is installed |
|
127 | 127 | if command -v $(CARGO) >/dev/null 2>&1; then \ |
|
128 | 128 | $(MAKE) rust-tests; \ |
|
129 | 129 | fi |
|
130 | 130 | cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) |
|
131 | 131 | |
|
132 | 132 | test-%: |
|
133 | 133 | cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@ |
|
134 | 134 | |
|
135 | 135 | testpy-%: |
|
136 | 136 | @echo Looking for Python $* in $(HGPYTHONS) |
|
137 | 137 | [ -e $(HGPYTHONS)/$*/bin/python ] || ( \ |
|
138 | 138 | cd $$(mktemp --directory --tmpdir) && \ |
|
139 | 139 | $(MAKE) -f $(HGROOT)/contrib/Makefile.python PYTHONVER=$* PREFIX=$(HGPYTHONS)/$* python ) |
|
140 | 140 | cd tests && $(HGPYTHONS)/$*/bin/python run-tests.py $(TESTFLAGS) |
|
141 | 141 | |
|
142 | 142 | rust-tests: py_feature = $(shell $(PYTHON) -c \ |
|
143 | 143 | 'import sys; print(["python27-bin", "python3-bin"][sys.version_info[0] >= 3])') |
|
144 | 144 | rust-tests: |
|
145 | 145 | cd $(HGROOT)/rust/hg-cpython \ |
|
146 | 146 | && $(CARGO) test --quiet --all \ |
|
147 | 147 | --no-default-features --features "$(py_feature) $(HG_RUST_FEATURES)" |
|
148 | 148 | |
|
149 | 149 | check-code: |
|
150 | 150 | hg manifest | xargs python contrib/check-code.py |
|
151 | 151 | |
|
152 | 152 | format-c: |
|
153 | 153 | clang-format --style file -i \ |
|
154 | 154 | `hg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` |
|
155 | 155 | |
|
156 | 156 | update-pot: i18n/hg.pot |
|
157 | 157 | |
|
158 | 158 | i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext |
|
159 | 159 | $(PYTHON) i18n/hggettext mercurial/commands.py \ |
|
160 | 160 | hgext/*.py hgext/*/__init__.py \ |
|
161 | 161 | mercurial/fileset.py mercurial/revset.py \ |
|
162 | 162 | mercurial/templatefilters.py \ |
|
163 | 163 | mercurial/templatefuncs.py \ |
|
164 | 164 | mercurial/templatekw.py \ |
|
165 | 165 | mercurial/filemerge.py \ |
|
166 | 166 | mercurial/hgweb/webcommands.py \ |
|
167 | 167 | mercurial/util.py \ |
|
168 | 168 | $(DOCFILES) > i18n/hg.pot.tmp |
|
169 | 169 | # All strings marked for translation in Mercurial contain |
|
170 | 170 | # ASCII characters only. But some files contain string |
|
171 | 171 | # literals like this '\037\213'. xgettext thinks it has to |
|
172 | 172 | # parse them even though they are not marked for translation. |
|
173 | 173 | # Extracting with an explicit encoding of ISO-8859-1 will make |
|
174 | 174 | # xgettext "parse" and ignore them. |
|
175 | 175 | $(PYFILESCMD) | xargs \ |
|
176 | 176 | xgettext --package-name "Mercurial" \ |
|
177 | 177 | --msgid-bugs-address "<mercurial-devel@mercurial-scm.org>" \ |
|
178 | 178 | --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \ |
|
179 | 179 | --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \ |
|
180 | 180 | -d hg -p i18n -o hg.pot.tmp |
|
181 | 181 | $(PYTHON) i18n/posplit i18n/hg.pot.tmp |
|
182 | 182 | # The target file is not created before the last step. So it never is in |
|
183 | 183 | # an intermediate state. |
|
184 | 184 | mv -f i18n/hg.pot.tmp i18n/hg.pot |
|
185 | 185 | |
|
186 | 186 | %.po: i18n/hg.pot |
|
187 | 187 | # work on a temporary copy for never having a half completed target |
|
188 | 188 | cp $@ $@.tmp |
|
189 | 189 | msgmerge --no-location --update $@.tmp $^ |
|
190 | 190 | mv -f $@.tmp $@ |
|
191 | 191 | |
|
192 | 192 | # Packaging targets |
|
193 | 193 | |
|
194 | 194 | packaging_targets := \ |
|
195 | centos5 \ | |
|
196 | centos6 \ | |
|
197 | 195 | centos7 \ |
|
198 | 196 | centos8 \ |
|
199 | 197 | deb \ |
|
200 | docker-centos5 \ | |
|
201 | docker-centos6 \ | |
|
202 | 198 | docker-centos7 \ |
|
203 | 199 | docker-centos8 \ |
|
204 | 200 | docker-debian-bullseye \ |
|
205 | 201 | docker-debian-buster \ |
|
206 | 202 | docker-debian-stretch \ |
|
207 | 203 | docker-fedora \ |
|
208 | 204 | docker-ubuntu-trusty \ |
|
209 | 205 | docker-ubuntu-trusty-ppa \ |
|
210 | 206 | docker-ubuntu-xenial \ |
|
211 | 207 | docker-ubuntu-xenial-ppa \ |
|
212 | 208 | docker-ubuntu-artful \ |
|
213 | 209 | docker-ubuntu-artful-ppa \ |
|
214 | 210 | docker-ubuntu-bionic \ |
|
215 | 211 | docker-ubuntu-bionic-ppa \ |
|
216 | 212 | fedora \ |
|
217 | 213 | linux-wheels \ |
|
218 | 214 | linux-wheels-x86_64 \ |
|
219 | 215 | linux-wheels-i686 \ |
|
220 | 216 | ppa |
|
221 | 217 | |
|
222 | 218 | # Forward packaging targets for convenience. |
|
223 | 219 | $(packaging_targets): |
|
224 | 220 | $(MAKE) -C contrib/packaging $@ |
|
225 | 221 | |
|
226 | 222 | osx: |
|
227 | 223 | rm -rf build/mercurial |
|
228 | 224 | /usr/bin/python2.7 setup.py install --optimize=1 \ |
|
229 | 225 | --root=build/mercurial/ --prefix=/usr/local/ \ |
|
230 | 226 | --install-lib=/Library/Python/2.7/site-packages/ |
|
231 | 227 | make -C doc all install DESTDIR="$(PWD)/build/mercurial/" |
|
232 | 228 | # Place a bogon .DS_Store file in the target dir so we can be |
|
233 | 229 | # sure it doesn't get included in the final package. |
|
234 | 230 | touch build/mercurial/.DS_Store |
|
235 | 231 | # install zsh completions - this location appears to be |
|
236 | 232 | # searched by default as of macOS Sierra. |
|
237 | 233 | install -d build/mercurial/usr/local/share/zsh/site-functions/ |
|
238 | 234 | install -m 0644 contrib/zsh_completion build/mercurial/usr/local/share/zsh/site-functions/_hg |
|
239 | 235 | # install bash completions - there doesn't appear to be a |
|
240 | 236 | # place that's searched by default for bash, so we'll follow |
|
241 | 237 | # the lead of Apple's git install and just put it in a |
|
242 | 238 | # location of our own. |
|
243 | 239 | install -d build/mercurial/usr/local/hg/contrib/ |
|
244 | 240 | install -m 0644 contrib/bash_completion build/mercurial/usr/local/hg/contrib/hg-completion.bash |
|
245 | 241 | make -C contrib/chg \ |
|
246 | 242 | HGPATH=/usr/local/bin/hg \ |
|
247 | 243 | PYTHON=/usr/bin/python2.7 \ |
|
248 | 244 | DESTDIR=../../build/mercurial \ |
|
249 | 245 | PREFIX=/usr/local \ |
|
250 | 246 | clean install |
|
251 | 247 | mkdir -p $${OUTPUTDIR:-dist} |
|
252 | 248 | HGVER=$$(python contrib/genosxversion.py $(OSXVERSIONFLAGS) build/mercurial/Library/Python/2.7/site-packages/mercurial/__version__.py) && \ |
|
253 | 249 | OSXVER=$$(sw_vers -productVersion | cut -d. -f1,2) && \ |
|
254 | 250 | pkgbuild --filter \\.DS_Store --root build/mercurial/ \ |
|
255 | 251 | --identifier org.mercurial-scm.mercurial \ |
|
256 | 252 | --version "$${HGVER}" \ |
|
257 | 253 | build/mercurial.pkg && \ |
|
258 | 254 | productbuild --distribution contrib/packaging/macosx/distribution.xml \ |
|
259 | 255 | --package-path build/ \ |
|
260 | 256 | --version "$${HGVER}" \ |
|
261 | 257 | --resources contrib/packaging/macosx/ \ |
|
262 | 258 | "$${OUTPUTDIR:-dist/}"/Mercurial-"$${HGVER}"-macosx"$${OSXVER}".pkg |
|
263 | 259 | |
|
264 | 260 | pyoxidizer: |
|
265 | 261 | $(PYOXIDIZER) build --path ./rust/hgcli --release |
|
266 | 262 | |
|
267 | 263 | .PHONY: help all local build doc cleanbutpackages clean install install-bin \ |
|
268 | 264 | install-doc install-home install-home-bin install-home-doc \ |
|
269 | 265 | dist dist-notests check tests rust-tests check-code format-c \ |
|
270 | 266 | update-pot pyoxidizer \ |
|
271 | 267 | $(packaging_targets) \ |
|
272 | 268 | osx |
@@ -1,136 +1,134 b'' | |||
|
1 | 1 | $(eval HGROOT := $(shell cd ../..; pwd)) |
|
2 | 2 | |
|
3 | 3 | DEBIAN_CODENAMES := \ |
|
4 | 4 | stretch \ |
|
5 | 5 | buster \ |
|
6 | 6 | bullseye |
|
7 | 7 | |
|
8 | 8 | UBUNTU_CODENAMES := \ |
|
9 | 9 | xenial \ |
|
10 | 10 | bionic \ |
|
11 | 11 | cosmic \ |
|
12 | 12 | disco |
|
13 | 13 | |
|
14 | 14 | FEDORA_RELEASE := 31 |
|
15 | 15 | |
|
16 | 16 | CENTOS_RELEASES := \ |
|
17 | 5 \ | |
|
18 | 6 \ | |
|
19 | 17 | 7 \ |
|
20 | 18 | 8 |
|
21 | 19 | |
|
22 | 20 | # Build a Python for these CentOS releases. |
|
23 |
CENTOS_WITH_PYTHON_RELEASES := |
|
|
24 |
CENTOS_WITH_NONVERSIONED_PYTHON := |
|
|
21 | CENTOS_WITH_PYTHON_RELEASES := | |
|
22 | CENTOS_WITH_NONVERSIONED_PYTHON := | |
|
25 | 23 | |
|
26 | 24 | help: |
|
27 | 25 | @echo 'Packaging Make Targets' |
|
28 | 26 | @echo '' |
|
29 | 27 | @echo 'docker-centos{$(strip $(CENTOS_RELEASES))}' |
|
30 | 28 | @echo ' Build an RPM for a specific CentOS version using Docker.' |
|
31 | 29 | @echo '' |
|
32 | 30 | @echo 'docker-debian-{$(strip $(DEBIAN_CODENAMES))}' |
|
33 | 31 | @echo ' Build Debian packages specific to a Debian distro using Docker.' |
|
34 | 32 | @echo '' |
|
35 | 33 | @echo 'docker-fedora' |
|
36 | 34 | @echo ' Build an RPM for a Fedora $(FEDORA_RELEASE) using Docker.' |
|
37 | 35 | @echo '' |
|
38 | 36 | @echo 'docker-ubuntu-{$(strip $(UBUNTU_CODENAMES))}' |
|
39 | 37 | @echo ' Build Debian package specific to an Ubuntu distro using Docker.' |
|
40 | 38 | @echo '' |
|
41 | 39 | @echo 'docker-ubuntu-{$(strip $(UBUNTU_CODENAMES))}-ppa' |
|
42 | 40 | @echo ' Build a source-only Debian package specific to an Ubuntu distro' |
|
43 | 41 | @echo ' using Docker.' |
|
44 | 42 | @echo '' |
|
45 | 43 | @echo 'linux-wheels' |
|
46 | 44 | @echo ' Build Linux manylinux wheels using Docker.' |
|
47 | 45 | @echo '' |
|
48 | 46 | @echo 'linux-wheels-{x86_64, i686}' |
|
49 | 47 | @echo ' Build Linux manylinux wheels for a specific architecture using Docker' |
|
50 | 48 | @echo '' |
|
51 | 49 | @echo 'deb' |
|
52 | 50 | @echo ' Build a Debian package locally targeting the current system' |
|
53 | 51 | @echo '' |
|
54 | 52 | @echo 'ppa' |
|
55 | 53 | @echo ' Build a Debian source package locally targeting the current system' |
|
56 | 54 | @echo '' |
|
57 | 55 | @echo 'centos{$(strip $(CENTOS_RELEASES))}' |
|
58 | 56 | @echo ' Build an RPM for a specific CentOS version locally' |
|
59 | 57 | @echo '' |
|
60 | 58 | @echo 'fedora' |
|
61 | 59 | @echo ' Build an RPM for Fedora $(FEDORA_RELEASE) locally' |
|
62 | 60 | |
|
63 | 61 | .PHONY: help |
|
64 | 62 | |
|
65 | 63 | .PHONY: deb |
|
66 | 64 | deb: |
|
67 | 65 | ./builddeb |
|
68 | 66 | |
|
69 | 67 | .PHONY: ppa |
|
70 | 68 | ppa: |
|
71 | 69 | ./builddeb --source-only |
|
72 | 70 | |
|
73 | 71 | # Debian targets. |
|
74 | 72 | define debian_targets = |
|
75 | 73 | .PHONY: docker-debian-$(1) |
|
76 | 74 | docker-debian-$(1): |
|
77 | 75 | ./dockerdeb debian $(1) |
|
78 | 76 | |
|
79 | 77 | endef |
|
80 | 78 | |
|
81 | 79 | $(foreach codename,$(DEBIAN_CODENAMES),$(eval $(call debian_targets,$(codename)))) |
|
82 | 80 | |
|
83 | 81 | # Ubuntu targets. |
|
84 | 82 | define ubuntu_targets = |
|
85 | 83 | .PHONY: docker-ubuntu-$(1) |
|
86 | 84 | docker-ubuntu-$(1): |
|
87 | 85 | ./dockerdeb ubuntu $(1) |
|
88 | 86 | |
|
89 | 87 | .PHONY: docker-ubuntu-$(1)-ppa |
|
90 | 88 | docker-ubuntu-$(1)-ppa: |
|
91 | 89 | ./dockerdeb ubuntu $(1) --source-only |
|
92 | 90 | |
|
93 | 91 | endef |
|
94 | 92 | |
|
95 | 93 | $(foreach codename,$(UBUNTU_CODENAMES),$(eval $(call ubuntu_targets,$(codename)))) |
|
96 | 94 | |
|
97 | 95 | # Fedora targets. |
|
98 | 96 | .PHONY: fedora |
|
99 | 97 | fedora: |
|
100 | 98 | mkdir -p $(HGROOT)/packages/fedora$(FEDORA_RELEASE) |
|
101 | 99 | ./buildrpm |
|
102 | 100 | cp $(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $(HGROOT)/packages/fedora$(FEDORA_RELEASE) |
|
103 | 101 | cp $(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $(HGROOT)/packages/fedora$(FEDORA_RELEASE) |
|
104 | 102 | rm -rf $(HGROOT)/rpmbuild |
|
105 | 103 | |
|
106 | 104 | .PHONY: docker-fedora |
|
107 | 105 | docker-fedora: |
|
108 | 106 | ./dockerrpm fedora$(FEDORA_RELEASE) |
|
109 | 107 | |
|
110 | 108 | # CentOS targets. |
|
111 | 109 | define centos_targets |
|
112 | 110 | .PHONY: centos$(1) |
|
113 | 111 | centos$(1): |
|
114 | 112 | mkdir -p $$(HGROOT)/packages/centos$(1) |
|
115 | 113 | ./buildrpm $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython,$$(if $$(filter $(1),$$(CENTOS_WITH_NONVERSIONED_PYTHON)),--python python,)) |
|
116 | 114 | cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/centos$(1) |
|
117 | 115 | cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/centos$(1) |
|
118 | 116 | |
|
119 | 117 | .PHONY: docker-centos$(1) |
|
120 | 118 | docker-centos$(1): |
|
121 | 119 | ./dockerrpm centos$(1) $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython,$$(if $$(filter $(1),$$(CENTOS_WITH_NONVERSIONED_PYTHON)),--python python,)) |
|
122 | 120 | |
|
123 | 121 | endef |
|
124 | 122 | |
|
125 | 123 | $(foreach release,$(CENTOS_RELEASES),$(eval $(call centos_targets,$(release)))) |
|
126 | 124 | |
|
127 | 125 | .PHONY: linux-wheels |
|
128 | 126 | linux-wheels: linux-wheels-x86_64 linux-wheels-i686 |
|
129 | 127 | |
|
130 | 128 | .PHONY: linux-wheels-x86_64 |
|
131 | 129 | linux-wheels-x86_64: |
|
132 | 130 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_x86_64 /src/contrib/packaging/build-linux-wheels.sh |
|
133 | 131 | |
|
134 | 132 | .PHONY: linux-wheels-i686 |
|
135 | 133 | linux-wheels-i686: |
|
136 | 134 | docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_i686 linux32 /src/contrib/packaging/build-linux-wheels.sh |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now