mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-26 12:43:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # Set up ESPHome dev environment
 | |
| 
 | |
| set -e
 | |
| 
 | |
| cd "$(dirname "$0")/.."
 | |
| 
 | |
| if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ]; then
 | |
|   python3 -m venv venv
 | |
|   source venv/bin/activate
 | |
| fi
 | |
| 
 | |
| pip3 install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt
 | |
| pip3 install --no-use-pep517 -e .
 | |
| 
 | |
| pre-commit install
 |