File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ sdh_store_and_pip_install_wheel() {
388
388
local sudo=" "
389
389
local root=" "
390
390
fi
391
- sdh_actually_pip_install_wheel $distname $root $pip_options -r " $SAGE_SPKG_SCRIPTS / $PKG_BASE /spkg-requirements.txt "
391
+ sdh_actually_pip_install_wheel $distname $root $pip_options " $wheel "
392
392
fi
393
393
echo " sdh_pip_uninstall -r \"\$ SAGE_SPKG_SCRIPTS/\$ PKG_BASE/spkg-requirements.txt\" " >> " $script_dir " /spkg-piprm
394
394
}
@@ -406,7 +406,7 @@ sdh_actually_pip_install_wheel() {
406
406
echo " (ignoring error)" >&2
407
407
fi
408
408
$sudo sage-pip-install " $@ " || \
409
- sdh_die " Error installing $@ "
409
+ sdh_die " Error installing $distname "
410
410
}
411
411
412
412
sdh_pip_uninstall () {
Original file line number Diff line number Diff line change 2
2
3
3
sdh_setup_bdist_wheel
4
4
5
+ # pip can install its own wheel! But first we need to ensure that the pip
6
+ # source directory in on the PYTHONPATH
7
+ export PYTHONPATH="$(pwd)/src"
8
+
5
9
# --ignore-installed makes sure that pip does not mistake
6
10
# its own source tree as an existing installation
7
11
sdh_store_and_pip_install_wheel --ignore-installed .
You can’t perform that action at this time.
0 commit comments