Skip to content

Commit

Permalink
fix for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderHam committed Aug 28, 2019
1 parent e2916e1 commit 586aada
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/clients/python/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function main() {

echo $(date) : "=== Using builddir: ${WHLDIR}"
mkdir -p ${WHLDIR}/tensorrtserver/api
mkdir -p ${WHLDIR}/tensorrtserver/shared_memory

echo "Adding package files"
cp ../../core/*_pb2.py \
Expand All @@ -59,8 +58,6 @@ function main() {
"${WHLDIR}/tensorrtserver/api/."
cp ../c++/librequest.so \
"${WHLDIR}/tensorrtserver/api/."
cp libcshm.so \
"${WHLDIR}/tensorrtserver/shared_memory/."
else
cp Release/crequest.dll \
"${WHLDIR}/tensorrtserver/api/."
Expand All @@ -71,8 +68,13 @@ function main() {
cp __init__.py \
"${WHLDIR}/tensorrtserver/api/."

cp shared_memory/__init__.py \
"${WHLDIR}/tensorrtserver/shared_memory/."
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
mkdir -p ${WHLDIR}/tensorrtserver/shared_memory
cp libcshm.so \
"${WHLDIR}/tensorrtserver/shared_memory/."
cp shared_memory/__init__.py \
"${WHLDIR}/tensorrtserver/shared_memory/."
fi

cp setup.py "${WHLDIR}"
touch ${WHLDIR}/tensorrtserver/__init__.py
Expand Down

0 comments on commit 586aada

Please sign in to comment.