Skip to content

Instantly share code, notes, and snippets.

@chittti
Last active November 17, 2017 20:39
Show Gist options
  • Save chittti/c95de0bd1bab8340c34b59d1be21bb26 to your computer and use it in GitHub Desktop.
Save chittti/c95de0bd1bab8340c34b59d1be21bb26 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
#Author: Likhith Chitneni
#License: BSD 3 Clause license - https://opensource.org/licenses/BSD-3-Clause
#
#Assuming fresh install of Ubuntu Server 16.04.3 - with SHA256SUM - a06cd926f5855d4f21fb4bc9978a35312f815fbda0d0ef7fdc846861f4fc4600
#This is a script to install docker and generate fastFM wheels for Python 2.7, 3.4, 3.5 and 3.6
#Update the system with new packages
apt update
apt -y upgrade
#Install docker
apt install -y docker.io
#Pull the github repo including submodules
git clone --recursive https://github.com/ibayer/fastFM.git
cd fastFM
#Create a directory for travis since we'll be reusing this script for travis too
mkdir travis
#Download the script from github
wget https://gist.githubusercontent.com/chittti/bfa4f4fdc2d8ab9e8be01ce2dd087cce/raw/170f3c9fd55f63f3a9eec3c56837d4ce6e8e48cd/build-wheels.sh
#move the script to travis
mv build-wheels.sh travis/build-wheels.sh
#Make the script executable to avoid permissions error
chmod +x travis/build-wheels.sh
#build for 64-bit
docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/travis/build-wheels.sh
#build for 32-bit
docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_i686 linux32 /io/travis/build-wheels.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment