update makefile
This commit is contained in:
parent
a8e4ba69f9
commit
0279d5f064
6
Makefile
6
Makefile
@ -1,16 +1,18 @@
|
|||||||
|
all: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
# Build Python package
|
# Build Python package
|
||||||
test -d build/ && rm -rf build/ || true
|
test -d build/ && rm -rf build/ || true
|
||||||
test -d dist/ && rm -rf dist/ || true
|
test -d dist/ && rm -rf dist/ || true
|
||||||
test -d *.egg-info/ && rm -rf *.egg-info/ || true
|
test -d *.egg-info/ && rm -rf *.egg-info/ || true
|
||||||
# python setup.py sdist bdist_wheel
|
|
||||||
python -m build
|
python -m build
|
||||||
|
rm -rv *.egg-info/
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Install package from built tarball
|
# Install package from built tarball
|
||||||
pip install dist/*.tar.gz
|
pip install dist/*.tar.gz
|
||||||
|
|
||||||
dist:
|
cp:
|
||||||
# Copy package to site downloads dir
|
# Copy package to site downloads dir
|
||||||
mkdir -p docs/static/downloads
|
mkdir -p docs/static/downloads
|
||||||
cp dist/*.tar.gz docs/static/downloads/
|
cp dist/*.tar.gz docs/static/downloads/
|
||||||
|
Loading…
Reference in New Issue
Block a user