sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y virtualenv python3.7 python3.7-dev
Add this to your instance user data. You need to stop the instance before set this.
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL_PATTERN = ( | |
r'(?i)(' | |
r'(?:(?:(?:https?|ftp):)?//)' | |
r'(?:\S+(?::\S*)?@)?' | |
r'(?:' | |
r'(?!(?:10|127)(?:\.\d{1,3}){3})' | |
r'(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})' | |
r'(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})' | |
r'(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])' | |
r'(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}' |
Reference: xmlsec/python-xmlsec#254 (comment)
- Remove the official formula
brew uninstall libxmlsec1
- Download the last known good formula and shove it into /tmp
OlderNewer