mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 23:21:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			618 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			618 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # Set up ESPHome dev environment
 | |
| 
 | |
| set -e
 | |
| 
 | |
| cd "$(dirname "$0")/.."
 | |
| 
 | |
| if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ] && [ ! "$ESPHOME_NO_VENV" ]; then
 | |
|   python3 -m venv venv
 | |
|   source venv/bin/activate
 | |
| fi
 | |
| 
 | |
| # Avoid unsafe git error when running inside devcontainer
 | |
| if [ -n "$DEVCONTAINER" ];then
 | |
|   git config --global --add safe.directory "$PWD"
 | |
| fi
 | |
| 
 | |
| pip3 install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt
 | |
| pip3 install setuptools wheel
 | |
| pip3 install --no-use-pep517 -e .
 | |
| 
 | |
| pre-commit install
 | |
| 
 | |
| script/platformio_install_deps.py platformio.ini --libraries --tools --platforms
 |