mirror of
				https://github.com/bensuperpc/dockcross.git
				synced 2025-11-04 01:46:24 +01:00 
			
		
		
		
	Disable pip from bootstrap.pypa.io: It will be reactivated later Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			652 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			652 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -e
 | 
						|
set -o pipefail
 | 
						|
 | 
						|
PYTHON=python
 | 
						|
while [ $# -gt 0 ]; do
 | 
						|
  case "$1" in
 | 
						|
    -python)
 | 
						|
      PYTHON=$2
 | 
						|
      shift
 | 
						|
      ;;
 | 
						|
    *)
 | 
						|
      echo "Usage: Usage: ${0##*/} [-python /path/to/bin/python]"
 | 
						|
      exit 1
 | 
						|
      ;;
 | 
						|
  esac
 | 
						|
  shift
 | 
						|
done
 | 
						|
 | 
						|
cd /tmp
 | 
						|
 | 
						|
# Todo: Need to update base image from Debian Stretch for the required Python
 | 
						|
# 3.6 or later
 | 
						|
# curl -# -LO https://bootstrap.pypa.io/pip/get-pip.py
 | 
						|
#curl -# -LO https://bootstrap.pypa.io/pip/2.7/get-pip.py
 | 
						|
#${PYTHON} get-pip.py --ignore-installed
 | 
						|
#rm get-pip.py
 | 
						|
 | 
						|
#${PYTHON} -m pip install --upgrade --ignore-installed setuptools
 | 
						|
#${PYTHON} -m pip install --ignore-installed conan
 |