-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (28 loc) · 895 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
install:
# cd nms/; python setup_linux.py build_ext --inplace; rm -rf build; cd ../../
# cd bbox/; python setup_linux.py build_ext --inplace; rm -rf build; cd ../../
# cd dataset/pycocotools/; python setup_linux.py build_ext --inplace; rm -rf build; cd ../../
# python setup.py build_ext --inplace; rm -rf build
pip install -e .
dist:
python3 setup.py sdist # bdist_wheel
pypi: dist
python3 -m twine upload --repository pypi --verbose dist/*
clean:
python setup.py clean --all
rm -fr *.egg-info dist
cd dcn/bbox; rm -fr *.so *.c *.cpp
cd dcn/nms; rm -fr *.so *.c *.cpp
cd dcn/dataset/pycocotools/; rm -fr _mask.c *.sou
## VCS
require-version:
ifndef version
$(error version is undefined)
endif
tag: require-version
git checkout master
git tag -a v$(version) -m v$(version)
git push origin tags/v$(version)
del-tag:
git tag -d $(tag)
git push origin --delete tags/$(tag)