From af4fa3d96c630506242a408bc9c6d477444d5a3d Mon Sep 17 00:00:00 2001 From: Shing Chan Date: Tue, 16 Jan 2024 22:09:54 +0000 Subject: [PATCH] create install-dev.sh --- install-dev.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 install-dev.sh diff --git a/install-dev.sh b/install-dev.sh new file mode 100644 index 00000000..61b8e28e --- /dev/null +++ b/install-dev.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# DEVELOPER INSTALLATION SCRIPT + +# You must have Java Development Kit (JDK) 8 (1.8). If higher (>8) then it must +# support --release flag to pin down the version when compiling. +# Always compile with 8 (1.8) to keep backward compatibility. +# In conda, you can get a JDK version that supports --release flag: +# conda install openjdk +javac --version && # java version +javac -cp src/accelerometer/java/JTransforms-3.1-with-dependencies.jar src/accelerometer/java/*.java --release 8 && # compile java files (using release 8) +pip install -e .[dev,docs] # install in edit mode + +# Download tiny sample data used for unit tests +wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/data/samples/ax3/tiny-sample.cwa.gz