Use --no-binary lxml now that newer pip broke --no-binary

File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 435, in _handle_no_binary
    value, existing.no_binary, existing.only_binary,
  File "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_internal/models/format_control.py", line 46, in handle_mutual_excludes
    "--no-binary / --only-binary option requires 1 argument."
pip._internal.exceptions.CommandError: --no-binary / --only-binary option requires 1 argument.

https://travis-ci.org/ArchiveTeam/grab-site/builds/600264421
This commit is contained in:
Ivan Kozik 2019-10-20 08:38:52 +00:00
parent 5024832257
commit ecea5ec002
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ before_install:
install:
- travis_retry pip install --upgrade pip setuptools
- travis_retry pip install --no-binary --upgrade .
- travis_retry pip install --no-binary lxml --upgrade .
script:
- ./tests/offline-tests

View File

@ -76,10 +76,10 @@ chmod +x pyenv-installer
./pyenv-installer
~/.pyenv/bin/pyenv install 3.7.3
~/.pyenv/versions/3.7.3/bin/python -m venv ~/gs-venv
~/gs-venv/bin/pip install --no-binary --upgrade git+https://github.com/ArchiveTeam/grab-site
~/gs-venv/bin/pip install --no-binary lxml --upgrade git+https://github.com/ArchiveTeam/grab-site
```
`--no-binary` is necessary for the html5-parser build.
`--no-binary lxml` is necessary for the html5-parser build.
Add this to your `~/.bashrc` or `~/.zshrc` and then restart your shell (e.g. by opening a new terminal tab/window):
@ -149,7 +149,7 @@ On OS X 10.10 - macOS 10.13:
brew update
brew install python libxslt re2 pkg-config
python3 -m venv ~/gs-venv
PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig" ~/gs-venv/bin/pip install --no-binary --upgrade git+https://github.com/ArchiveTeam/grab-site
PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig" ~/gs-venv/bin/pip install --no-binary lxml --upgrade git+https://github.com/ArchiveTeam/grab-site
```
4. Add this to your `~/.bash_profile` (which may not exist yet) and then restart your shell (e.g. by opening a new terminal tab/window):