local_distribution.sh 291 Bytes
Newer Older
1
2
3
4
5
6
7
# if dist and build directories exist, remove them
if [ -d dist ]; then
    rm -r dist
fi

python -m build --wheel -o dist

8
9
python setup.py sdist --formats=gztar,zip 

10
11
12
13
14
15
if [ $? -ne 0 ]; then
    echo "Error: Failed to build the wheel."
    exit 1
else
    echo "Wheel built successfully."
fi