File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,15 @@ sdh_store_wheel() {
321
321
mkdir -p " ${SAGE_DESTDIR}${SAGE_SPKG_WHEELS} " && \
322
322
$sudo mv " $wheel " " ${SAGE_DESTDIR}${SAGE_SPKG_WHEELS} /" || \
323
323
sdh_die " Error storing $wheel "
324
- wheel=" ${SAGE_DESTDIR}${SAGE_SPKG_WHEELS} /${wheel##*/ } "
324
+ wheel=" ${SAGE_SPKG_WHEELS} /${wheel##*/ } "
325
+ if [ -n " ${SAGE_SPKG_SCRIPTS} " -a -n " ${PKG_BASE} " ]; then
326
+ wheel_basename=" ${wheel##*/ } "
327
+ distname=" ${wheel_basename%% -* } "
328
+ # Record name and wheel file location
329
+ mkdir -p ${SAGE_DESTDIR}${SAGE_SPKG_SCRIPTS} /${PKG_BASE}
330
+ echo " ${distname} @ file://${wheel} " >> ${SAGE_DESTDIR}${SAGE_SPKG_SCRIPTS} /${PKG_BASE} /spkg-requirements.txt
331
+ fi
332
+ wheel=" ${SAGE_DESTDIR}${wheel} "
325
333
}
326
334
327
335
sdh_store_and_pip_install_wheel () {
@@ -373,11 +381,6 @@ sdh_store_and_pip_install_wheel() {
373
381
fi
374
382
$sudo sage-pip-install $root $pip_options " $wheel " || \
375
383
sdh_die " Error installing ${wheel##*/ } "
376
- if [ -n " ${SAGE_PKG_DIR} " ]; then
377
- # Record name of installed distribution name for uninstallation.
378
- wheel=${wheel##*/ }
379
- echo " ${wheel%% -* } " >> ${SAGE_PKG_DIR} /spkg-requirements.txt
380
- fi
381
384
}
382
385
383
386
sdh_pip_uninstall () {
You can’t perform that action at this time.
0 commit comments