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

Commit

Permalink
Add sage_bootstrap.build
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 3, 2020
1 parent 60642d3 commit 8006b6f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/sage_bootstrap/build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from __future__ import absolute_import

def build(targets):
from sage_conf import SAGE_ROOT
from os import system
command = 'cd {} && make {}'.format(SAGE_ROOT, " ".join(targets))
print("Running {}".format(command))
retval = system(command)
if retval != 0:
raise RuntimeError("Failed with status {}".format(retval))
3 changes: 3 additions & 0 deletions build/sage_root/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env bash
# This version of the bootstrap script does nothing.
exit 0
3 changes: 3 additions & 0 deletions build/sage_root/src/doc/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env bash
# This version of the src/doc/bootstrap script does nothing.
exit 0

0 comments on commit 8006b6f

Please sign in to comment.