@task
def manylinux(ctx, vs, upload=False):
 manylinux = '/tmp/manylinux-builds'
 if (not os.path.exists(manylinux)):
  with cd('/tmp'):
   run('git clone --recursive https://github.com/minrk/manylinux-builds -b pyzmq')
 else:
  with cd(manylinux):
   run('git pull')
   run('git submodule update')
 run('docker pull quay.io/pypa/manylinux1_x86_64')
 run('docker pull quay.io/pypa/manylinux1_i686')
 base_cmd = "docker run --dns 8.8.8.8 --rm -e PYZMQ_VERSIONS='{vs}' -e PYTHON_VERSIONS='{pys}' -e ZMQ_VERSION='{zmq}' -v $PWD:/io".format(vs=vs, pys='2.7 3.4 3.5 3.6', zmq=libzmq_vs)
 with cd(manylinux):
  run((base_cmd + ' quay.io/pypa/manylinux1_x86_64 /io/build_pyzmqs.sh'))
  run((base_cmd + ' quay.io/pypa/manylinux1_i686 linux32 /io/build_pyzmqs.sh'))
 if upload:
  py = make_env('3.5', 'twine')
  run(['twine', 'upload', os.path.join(manylinux, 'wheelhouse', '*')])

@ task def manylinux ( ctx , vs , upload = False ) : manylinux = '/tmp/manylinux-builds' if ( not os . path . exists ( manylinux ) ) : with cd ( '/tmp' ) : run ( 'git clone --recursive https://github.com/minrk/manylinux-builds -b pyzmq' ) else : with cd ( manylinux ) : run ( 'git pull' ) run ( 'git submodule update' ) run ( 'docker pull quay.io/pypa/manylinux1_x86_64' ) run ( 'docker pull quay.io/pypa/manylinux1_i686' ) base_cmd = "docker run --dns 8.8.8.8 --rm -e PYZMQ_VERSIONS='{vs}' -e PYTHON_VERSIONS='{pys}' -e ZMQ_VERSION='{zmq}' -v $PWD:/io" . format ( vs = vs , pys = '2.7 3.4 3.5 3.6' , zmq = libzmq_vs ) with cd ( manylinux ) : run ( ( base_cmd + ' quay.io/pypa/manylinux1_x86_64 /io/build_pyzmqs.sh' ) ) run ( ( base_cmd + ' quay.io/pypa/manylinux1_i686 linux32 /io/build_pyzmqs.sh' ) ) if upload : py = make_env ( '3.5' , 'twine' ) run ( [ 'twine' , 'upload' , os . path . join ( manylinux , 'wheelhouse' , '*' ) ] )
build manylinux wheels with matthew bretts manylinux-builds .