blob: 10e419a80e2f469c3f02dd1f86003983bc261ce6 [file] [log] [blame]
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# this script should be launched at the root of the singa source folder
# it build the cpu-only and cuda enabled wheel packages for py3.6, 3.7 and 3.8
rm -rf dist
# build cpu only wheel packages
rm -rf build
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
rm -rf build
/opt/python/cp37-cp37m/bin/python setup.py bdist_wheel
rm -rf build
/opt/python/cp38-cp38/bin/python setup.py bdist_wheel
# build cuda enabled wheel packages
export SINGA_CUDA=ON
rm -rf build
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
rm -rf build
/opt/python/cp37-cp37m/bin/python setup.py bdist_wheel
rm -rf build
/opt/python/cp38-cp38/bin/python setup.py bdist_wheel
# repair the wheel files in dist/*.whl and store the results into wheelhouse/
/opt/python/cp38-cp38/bin/python setup.py audit