Skip to content

Commit

Permalink
Make wheel package platform-specific and python-version-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc123 committed May 16, 2020
1 parent d61a37e commit 94994ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packaging/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ fi
pip_install numpy future
setup_pip_pytorch_version
python setup.py clean
IS_WHEEL=1 python setup.py bdist_wheel
if [[ "$OSTYPE" == "msys" ]]; then
python_tag="$(echo "cp$PYTHON_VERSION" | tr -d '.')"
IS_WHEEL=1 python setup.py bdist_wheel --plat-name win_amd64 --python-tag $python_tag
else
IS_WHEEL=1 python setup.py bdist_wheel
fi

0 comments on commit 94994ec

Please sign in to comment.