-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dockerfile and instructions for wheel
- Loading branch information
1 parent
cd40917
commit 577deed
Showing
4 changed files
with
30 additions
and
13 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,24 @@ | ||
FROM quay.io/pypa/manylinux1_x86_64:latest | ||
|
||
#Taken from https://github.com/skvark/opencv-python/blob/master/docker/Dockerfile_x86_64 | ||
RUN curl -O -L https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz && \ | ||
tar -xf cmake-3.9.0.tar.gz && \ | ||
cd cmake-3.9.0 && \ | ||
#manylinux1 provides curl-devel equivalent and libcurl statically linked | ||
# against the same newer OpenSSL as other source-built tools | ||
# (1.0.2s as of this writing) | ||
yum -y install zlib-devel && \ | ||
#configure does a bootstrap make under the hood | ||
export MAKEFLAGS=-j$(getconf _NPROCESSORS_ONLN) && \ | ||
./configure --system-curl && \ | ||
make && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf cmake-3.9.0* | ||
|
||
# https://trac.ffmpeg.org/wiki/CompilationGuide/Centos#GettheDependencies | ||
# manylinux provides the toolchain and git; we provide cmake | ||
RUN yum install -y lapack-devel blas-devel | ||
|
||
|
||
ENV PATH "$HOME/bin:$PATH" |
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,4 @@ | ||
login into docker | ||
alias cmake=/usr/local/bin/cmake | ||
/opt/python/cp36-cp36m/bin/python3 setup.py bdist_wheel | ||
auditwheel repair dist/pydegensac-0.1.1-cp36-cp36m-linux_x86_64.whl |
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