Skip to content

Commit

Permalink
[build] Ensure pip version is Python2 compatible
Browse files Browse the repository at this point in the history
Old code was fetching and using the latest pip which no longer supports
Python2. This change ensures that we only use Python v2-compatible
version for our CI/CD.
  • Loading branch information
sgnn7 committed Mar 18, 2021
1 parent ef1eea1 commit b67dbe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ default_steps: &default_steps
- run: |
sudo apt-get update
sudo apt install -y libcurl4-openssl-dev libssl-dev
pip install -U pip wheel
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
pip install --upgrade wheel
cd $HOME/integrations-core/datadog_checks_base && python setup.py bdist_wheel && pip install . && cd -
- run: |
bundle install
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ task 'setup_env' do
`python venv/virtualenv.py -p python2 --no-site-packages --no-pip --no-setuptools venv/`
`wget -O venv/ez_setup.py https://bootstrap.pypa.io/ez_setup.py`
`venv/bin/python venv/ez_setup.py --version="20.9.0"`
`wget -O venv/get-pip.py https://bootstrap.pypa.io/get-pip.py`
`wget -O venv/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py`
`venv/bin/python venv/get-pip.py`
`venv/bin/pip install -r requirements.txt`
`venv/bin/pip install -r requirements-test.txt`
Expand Down

0 comments on commit b67dbe2

Please sign in to comment.