File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,15 +140,7 @@ echo "[INFO] Installing against Python $PYTHONVER"
140140
141141# Setup a temporary directory where the install will be initially created
142142SCRATCHDIR=$( mktemp -d)
143- pkg_loc=$( $mule_python_exec -c " import site ; print(site.getsitepackages()[0])" )
144- if [[ $pkg_loc == * " dist-packages" * ]]; then
145- debian_like=true
146- SCRATCHLIB=$SCRATCHDIR /local/lib/$PYTHONEXEC /dist-packages
147- else
148- debian_like=false
149- SCRATCHLIB=$SCRATCHDIR /lib/$PYTHONEXEC /site-packages
150- fi
151- echo " SCRATCHLIB $SCRATCHLIB "
143+ SCRATCHLIB=$SCRATCHDIR /lib/$PYTHONEXEC /site-packages
152144
153145# Make relative paths absolute
154146if [ ! ${LIB_DEST: 0: 1} == " /" ] ; then
@@ -392,11 +384,7 @@ function unpack_and_copy(){
392384 else
393385 cp -vr $egg * .* -info $BIN_DEST
394386 fi
395- if $debian_like ; then
396- cp -vr $SCRATCHDIR /local/bin/* $BIN_DEST /
397- else
398- cp -vr $SCRATCHDIR /bin/* $BIN_DEST /
399- fi
387+ cp -vr $SCRATCHDIR /bin/* $BIN_DEST /
400388 fi
401389}
402390
You can’t perform that action at this time.
0 commit comments