Make python a required build dependency (#5784)
* Make python a required build dependency * Add missing color * fixup sabayon linux per @BlitzKraft
This commit is contained in:
		
							parent
							
								
									cb1935aaff
								
							
						
					
					
						commit
						99500243e1
					
				
					 6 changed files with 18 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -15,4 +15,5 @@ pkg install -y \
 | 
			
		|||
	arm-none-eabi-gcc \
 | 
			
		||||
	arm-none-eabi-binutils \
 | 
			
		||||
	arm-none-eabi-newlib \
 | 
			
		||||
	diffutils
 | 
			
		||||
	diffutils \
 | 
			
		||||
	python3
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -25,6 +25,7 @@ if grep ID /etc/os-release | grep -qE "fedora"; then
 | 
			
		|||
		kernel-headers \
 | 
			
		||||
		make \
 | 
			
		||||
		perl \
 | 
			
		||||
		python3 \
 | 
			
		||||
		unzip \
 | 
			
		||||
		wget \
 | 
			
		||||
		zip
 | 
			
		||||
| 
						 | 
				
			
			@ -47,6 +48,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
 | 
			
		|||
		gcc-avr \
 | 
			
		||||
		git \
 | 
			
		||||
		libnewlib-arm-none-eabi \
 | 
			
		||||
		python3 \
 | 
			
		||||
		unzip \
 | 
			
		||||
		wget \
 | 
			
		||||
		zip
 | 
			
		||||
| 
						 | 
				
			
			@ -66,6 +68,7 @@ elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
 | 
			
		|||
		diffutils \
 | 
			
		||||
		gcc \
 | 
			
		||||
		git \
 | 
			
		||||
		python \
 | 
			
		||||
		unzip \
 | 
			
		||||
		wget \
 | 
			
		||||
		zip
 | 
			
		||||
| 
						 | 
				
			
			@ -87,6 +90,7 @@ elif grep ID /etc/os-release | grep -q gentoo; then
 | 
			
		|||
			app-arch/zip \
 | 
			
		||||
			app-mobilephone/dfu-util \
 | 
			
		||||
			dev-embedded/avrdude \
 | 
			
		||||
			dev-lang/python:3.5 \
 | 
			
		||||
			net-misc/wget \
 | 
			
		||||
			sys-devel/gcc \
 | 
			
		||||
			sys-devel/crossdev
 | 
			
		||||
| 
						 | 
				
			
			@ -102,6 +106,7 @@ elif grep ID /etc/os-release | grep -q sabayon; then
 | 
			
		|||
		app-arch/zip \
 | 
			
		||||
		app-mobilephone/dfu-util \
 | 
			
		||||
		dev-embedded/avrdude \
 | 
			
		||||
		dev-lang/python \
 | 
			
		||||
		net-misc/wget \
 | 
			
		||||
		sys-devel/gcc \
 | 
			
		||||
		sys-devel/crossdev
 | 
			
		||||
| 
						 | 
				
			
			@ -125,6 +130,7 @@ elif grep ID /etc/os-release | grep -qE "opensuse|tumbleweed"; then
 | 
			
		|||
		dfu-tool \
 | 
			
		||||
		dfu-programmer \
 | 
			
		||||
		gcc \
 | 
			
		||||
		python3 \
 | 
			
		||||
		unzip \
 | 
			
		||||
		wget \
 | 
			
		||||
		zip
 | 
			
		||||
| 
						 | 
				
			
			@ -143,7 +149,8 @@ elif grep ID /etc/os-release | grep -q slackware; then
 | 
			
		|||
			dfu-util \
 | 
			
		||||
			arm-binutils \
 | 
			
		||||
			arm-gcc \
 | 
			
		||||
			newlib
 | 
			
		||||
			newlib \
 | 
			
		||||
			python3
 | 
			
		||||
		echo "Done!"
 | 
			
		||||
	else
 | 
			
		||||
		echo "Quitting..."
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,5 +22,5 @@ fi
 | 
			
		|||
brew tap osx-cross/avr
 | 
			
		||||
brew tap PX4/homebrew-px4
 | 
			
		||||
brew update
 | 
			
		||||
brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude dfu-util
 | 
			
		||||
brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude dfu-util python3
 | 
			
		||||
brew link --force avr-gcc@7
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,7 +7,7 @@ armtools=gcc-arm-none-eabi
 | 
			
		|||
installflip=false
 | 
			
		||||
 | 
			
		||||
echo "Installing dependencies needed for the installation (quazip)"
 | 
			
		||||
pacman --needed -S msys/unzip msys/p7zip base-devel msys/git mingw-w64-x86_64-toolchain
 | 
			
		||||
pacman --needed -S base-devel mingw-w64-x86_64-toolchain msys/git msys/p7zip msys/python3 msys/unzip
 | 
			
		||||
 | 
			
		||||
source "$dir/win_shared_install.sh"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue