From bf0d60078f33212e5b2342f1ae99c69f02a37e52 Mon Sep 17 00:00:00 2001 From: Shipley xie Date: Fri, 19 Mar 2021 10:27:12 +0800 Subject: [PATCH 1/2] update .gitignore: ignore build result in linux to stay clear environment --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index a788d63..869cf38 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,8 @@ dkms.conf __pycache__ *pyc .idea + +# build stuff +build/ +dist/ +athena_signal.egg-info/ From 8d9378a02608efeef07e6fdcee579184a3306915 Mon Sep 17 00:00:00 2001 From: Shipley xie Date: Fri, 19 Mar 2021 10:32:04 +0800 Subject: [PATCH 2/2] improve(pack.sh): use --fore-reinstall instead --ignore-installed will ignore the installed packages, overwriting them. This can break your system if the existing package is of a different version or was installed with a different package manager! --- pack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack.sh b/pack.sh index 360c16d..03eb692 100755 --- a/pack.sh +++ b/pack.sh @@ -10,7 +10,7 @@ swig -python athena_signal/dios_signal.i python setup.py bdist_wheel sdist #3. Pip install the athena-siganl. -pip install --ignore-installed dist/athena_signal-*.whl +pip install --force-reinstall dist/athena_signal-*.whl #4. Test the athena_signal model. [Optional] python examples/athena_signal_test.py