Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Use script package 'check_dependencies' to install tox, pytest, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jan 13, 2020
1 parent b8f53f7 commit 623cb21
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/pkgs/check_dependencies/check-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mock
tox
pytest
nose
pbr
7 changes: 7 additions & 0 deletions build/pkgs/check_dependencies/spkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/sh
# Because 'script' packages do not go through sage-spkg, SAGE_CHECK is not defined.
# Working dir is SAGE_ROOT.
echo "$0: SAGE_CHECK_PACKAGES=${SAGE_CHECK_PACKAGES} SAGE_CHECK=${SAGE_CHECK}"
if [ "$SAGE_CHECK" == "yes" ]; then
sage-python23 -m pip install -r build/pkgs/check_dependencies/check-requirements.txt
fi
1 change: 1 addition & 0 deletions build/pkgs/check_dependencies/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
script
1 change: 1 addition & 0 deletions build/pkgs/pygments/spkg-check
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
py.test
6 changes: 6 additions & 0 deletions src/bin/sage
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,12 @@ install() {
do
# Check for options
case "$PKG" in
-c|--check)
# This duplicates option handling in build/bin/sage-spkg,
# but is needed for packages of type=script.
INSTALL_OPTIONS="$INSTALL_OPTIONS $PKG"
export SAGE_CHECK=yes
continue;;
-*)
INSTALL_OPTIONS="$INSTALL_OPTIONS $PKG"
continue;;
Expand Down

0 comments on commit 623cb21

Please sign in to comment.