-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
Β·37 lines (31 loc) Β· 1.06 KB
/
install.sh
File metadata and controls
executable file
Β·37 lines (31 loc) Β· 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# FCSP API Installation Script
# This script installs the FCSP API package in development mode
echo "π Installing FCSP API in development mode..."
# Check if we're in the right directory
if [ ! -f "setup.py" ] || [ ! -f "pyproject.toml" ]; then
echo "β Error: Please run this script from the fcsp-api root directory"
exit 1
fi
# Install the package in development mode
echo "π¦ Installing package..."
pip install -e .
# Install development dependencies (optional)
read -p "π€ Install development dependencies? (y/n): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "π§ Installing development dependencies..."
pip install -e ".[dev]"
fi
echo "β
Installation complete!"
echo ""
echo "π― You can now run the scanner example:"
echo " python examples/scanner_example.py"
echo ""
echo "π§ Or use the command-line scanner:"
echo " fcsp-scanner [device-ip]"
echo ""
echo "π Or import the library in Python:"
echo " from fcsp_api import FCSP"
echo ""
echo "π Don't forget to configure your device settings in fcsp_config.json"