-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added python3 OSX wheels, all versions. Updated setup.py classifiers.
- Loading branch information
Showing
3 changed files
with
102 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash -xe | ||
|
||
brew install pyenv || brew outdated pyenv || brew upgrade pyenv | ||
|
||
export PYENV_VERSION=${PYENV:-3.6.4} | ||
if [[ ! -d "$HOME/.pyenv/versions/$PYENV_VERSION" ]]; then | ||
pyenv install $PYENV_VERSION | ||
fi | ||
pyenv global $PYENV_VERSION | ||
pyenv versions | ||
|
||
set +x | ||
eval "$(pyenv init -)" | ||
set -x | ||
|
||
which python | ||
python -m pip install -U virtualenv | ||
python -m virtualenv -p "$(which python)" venv | ||
|
||
set +x | ||
source venv/bin/activate | ||
set -x | ||
|
||
python -V | ||
python -m pip install -U setuptools pip | ||
pip install -U delocate wheel | ||
pip wheel . | ||
cp /usr/local/lib/libssh2* . | ||
delocate-listdeps --all *.whl | ||
delocate-wheel -v *.whl | ||
delocate-listdeps --all *.whl | ||
|
||
ls -l *.whl | ||
rm -f *.dylib | ||
pip install -v *.whl | ||
pwd; mkdir -p temp; cd temp; pwd | ||
python -c "from ssh2.session import Session; Session()" && echo "Import successfull" | ||
cd ..; pwd | ||
set +x | ||
deactivate | ||
set -x | ||
|
||
mv -f *.whl wheels/ |
This file contains 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