-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 701 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: build test clean sdist wheel rpm deb
build:
python3 setup.py build
test: build
@BUILD_DIR=$$(ls -d build/lib.*-*-* 2>/dev/null | head -1); \
[ -n "$$BUILD_DIR" ] || (echo "Error: build directory not found." && exit 1); \
PYTHONPATH=$$BUILD_DIR python3 -m unittest tests.test -v
sdist:
python3 setup.py sdist
wheel: build
python3 setup.py bdist_wheel
rpm: sdist
cp dist/pylibconfig-*.tar.gz ~/.rpmbuild/SOURCES/python-libconfig-$(shell python3 setup.py --version).tar.gz
rpmbuild -ba python-libconfig.spec
clean:
rm -rf build dist pylibconfig.egg-info *.deb
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -name '*.pyc' -delete 2>/dev/null || true