-
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 manylinux dockerfile and script.
Build manylinux binary wheels for tags on travis, pypi upload.
- Loading branch information
Showing
14 changed files
with
75 additions
and
5 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,29 @@ | ||
FROM quay.io/pypa/manylinux1_x86_64 | ||
|
||
ENV CMAKE cmake-2.8.12.2-Linux-i386 | ||
ENV OPENSSL openssl-1.0.2l | ||
ENV LIBSSH2 libssh2-1.8.0 | ||
|
||
RUN yum install zlib-devel -y | ||
|
||
# Cmake | ||
RUN wget --no-check-certificate https://cmake.org/files/v2.8/${CMAKE}.tar.gz && \ | ||
tar -xzf ${CMAKE}.tar.gz && cp -af ${CMAKE}/share/* /usr/share/ && \ | ||
cp -af ${CMAKE}/bin/* /usr/bin/ | ||
|
||
# Openssl | ||
RUN wget ftp://ftp.openssl.org/source/${OPENSSL}.tar.gz && \ | ||
tar -xzf ${OPENSSL}.tar.gz && \ | ||
cd ${OPENSSL} && \ | ||
./config --prefix=/usr --openssldir=/usr/openssl threads shared && \ | ||
make -j4 && make install | ||
|
||
# Libssh2 | ||
RUN wget --no-check-certificate https://www.libssh2.org/download/${LIBSSH2}.tar.gz && \ | ||
tar -xzf ${LIBSSH2}.tar.gz | ||
|
||
RUN cd ${LIBSSH2} && cmake ../${LIBSSH2} -DBUILD_SHARED_LIBS=ON -DENABLE_ZLIB_COMPRESSION=ON \ | ||
-DENABLE_CRYPT_NONE=ON -DENABLE_MAC_NONE=ON -DCMAKE_INSTALL_PREFIX=/usr \ | ||
&& cmake --build . --config Release --target install | ||
|
||
RUN rm -rf ${CMAKE}* ${OPENSSL}* ${LIBSSH2}* |
File renamed without changes.
File renamed without changes.
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,11 @@ | ||
#!/bin/bash -xe | ||
|
||
docker_tag="parallelssh/ssh2-manylinux" | ||
|
||
rm -rf build dist | ||
|
||
docker pull $docker_tag || echo | ||
docker build --cache-from $docker_tag ci/docker/manylinux -t $docker_tag | ||
docker push $docker_tag | ||
docker run --rm -v `pwd`:/io $docker_tag /io/ci/travis/build-wheels.sh | ||
ls wheelhouse/ |
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,18 @@ | ||
#!/bin/bash -xe | ||
|
||
# Compile wheels | ||
for PYBIN in /opt/python/*/bin; do | ||
# "${PYBIN}/pip" install -r /io/dev-requirements.txt | ||
"${PYBIN}/pip" wheel /io/ -w wheelhouse/ | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/*.whl; do | ||
auditwheel repair "$whl" -w /io/wheelhouse/ | ||
done | ||
|
||
# Install packages and test | ||
for PYBIN in /opt/python/*/bin; do | ||
"${PYBIN}/pip" install ssh2-python --no-index -f /io/wheelhouse | ||
(cd "$HOME"; "${PYBIN}/python" -c 'from ssh2.session import Session; Session()') | ||
done |