17 lines
292 B
Bash
Executable File
17 lines
292 B
Bash
Executable File
#!/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
|