-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (44 loc) · 1.2 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# PyPi Packaging
package: clean
@echo " ** PACKAGING FOR PYPI **"
python setup.py sdist bdist_wheel
python3 setup.py bdist_wheel
# PyPi Packaging
package3: package
@echo " ** PACKAGING FOR PYPI **"
python3 setup.py bdist_wheel
# PyPi Publishing
publish: package package3
@echo " ** UPLOADING TO PYPI **"
twine upload dist/*
# Clean all the things
clean:
@echo " ** CLEANING CHIP PYTHON AREST **"
rm -rf CHIP_aREST.* build dist
rm -f *.pyo *.pyc
rm -f *.egg
rm -rf __pycache__
rm -rf debian/python-chip-python-arest*
rm -rf debian/python3-chip-python-arest*
# Build all the things
build:
@echo " ** BUILDING CHIP PYTHON AREST: PYTHON 2 **"
python setup.py build --force
# Install all the things
install: build
@echo " ** INSTALLING CHIP PYTHON AREST: PYTHON 2 **"
python setup.py install --force
# Build for Python 3
build3:
@echo " ** BUILDING CHIP PYTHON AREST: PYTHON 3 **"
python3 setup.py build --force
# Install for Python 3
install3: build3
@echo " ** INSTALLING CHIP PYTHON AREST: PYTHON 3 **"
python3 setup.py install --force
# Install for both Python 2 and 3
all: install install3
# Create a deb file
debfile:
@echo " ** BUILDING DEBIAN PACKAGES **"
dpkg-buildpackage -rfakeroot -uc -b