-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 993 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: test sdist bdist_wheel_linux bdist_windows
clean:
python setup.py clean
fresh_toolchain:
python -m pip install -U pip setuptools
check_docs: fresh_toolchain
pip install -U collective.checkdocs
python setup.py checkdocs
test:
tox
sdist: clean fresh_toolchain check_docs
python setup.py sdist --formats zip
bdist_wheel_linux: clean
./tools/run_docker.sh "advanced_descriptors"
bdist_rpm: clean fresh_toolchain check_docs
@FPM=$$(find /usr/bin /usr/local/bin ~/.gem -name fpm -executable -type f -print -quit);\
echo "Use FPM in $$FPM";\
$$FPM -s python -t rpm --python-pip pip .
bdist_deb: clean fresh_toolchain check_docs
@FPM=$$(find /usr/bin /usr/local/bin ~/.gem -name fpm -executable -type f -print -quit);\
echo "Use FPM in $$FPM";\
$$FPM -s python -t deb --python-pip pip .
bdist_windows: clean fresh_toolchain check_docs
pip install -U setuptools wheel
pip install -U -r build_requirements.txt
python setup.py bdist_wheel bdist_wininst
ALL: clean test