magic/install_package.sh

17 lines
292 B
Bash
Raw Normal View History

2024-06-17 20:55:11 +02:00
#!/bin/bash
pip uninstall magic-cache
# Remove old build artifacts
rm -rf build dist *.egg-info
# compile interceptor
rm magic/hocuspocus.so
gcc -shared -fPIC -o magic/hocuspocus.so magic/hocuspocus.c -ldl
# Build the package
python -m build
# Install the package
pip install dist/*.whl