File: install.sh

package info (click to toggle)
python-asyncssh 2.10.1-2%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,252 kB
  • sloc: python: 36,288; makefile: 11
file content (23 lines) | stat: -rwxr-xr-x 591 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
    export CPPFLAGS="-I/usr/local/opt/openssl/include"
    export LDFLAGS="-L/usr/local/opt/openssl/lib -L/usr/local/opt/libffi/lib"
    export PATH="$HOME/.pyenv/bin:/usr/local/opt/openssl/bin:$PATH"

    brew update
    brew install libffi libsodium
    eval "$(pyenv init -)"
    pyenv install $PYENV_VERSION
    pyenv global $PYENV_VERSION
    pyenv rehash
else
    git clone git://github.com/jedisct1/libsodium.git
    cd libsodium
    ./autogen.sh
    ./configure
    make && sudo make install
    sudo ldconfig
fi

pip install tox