Skip to content

Commit

Permalink
manylinux working
Browse files Browse the repository at this point in the history
  • Loading branch information
lepelog committed May 24, 2020
1 parent ebbd7a2 commit 0435288
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -45,6 +45,13 @@ When no binary build is available, pip will automatically build from source duri

To build and install from source run `pip3 install .`.

### Building for manylinux
- Use the manylinux docker container in this directory:
`docker run -v $PWD:/home/build/nlzss11 -ti quay.io/pypa/manylinux2010_x86_64 bash`
- Install cmake3 via yum and override old cmake
- Install pybind11 from source
- run `setup.py bdist_wheel` with every cpython version you want from `/opt/python`

## License

This software is licensed under the terms of the GNU General Public License, version 2 or later.
20 changes: 20 additions & 0 deletions build-on-manylinux.sh
@@ -0,0 +1,20 @@
# activate devtoolset to be able to use c++17
/opt/rh/devtoolset-8/enable

# install cmake
yum install -y cmake3
# override old
ln -sf /usr/bin/cmake3 /usr/bin/cmake

# install pybind11
mkdir ~/temp_pybind
cd ~/temp_pybind
curl -L https://github.com/pybind/pybind11/archive/v2.5.0.tar.gz -o pybind11.tar.gz && tar -xzf pybind11.tar.gz && cd pybind11-2.5.0/

mkdir build && cd build
cmake -DPYBIND11_TEST=false ..
make && make install

cd ~ && rm -rf ~/temp_pybind

cd /home/build/nlzss11
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.0)
project(nlzss11 CXX)

if (MSVC)
Expand Down

0 comments on commit 0435288

Please sign in to comment.