Skip to content

Commit 713be75

Browse files
author
Release Manager
committed
sagemathgh-41025: set full path to sage-num-threads.py in sage-env
fixes sagemath#40889 Apparently we no longer put SAGE_ROOT/src/bin/ in PATH <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#41025 Reported by: Dima Pasechnik Reviewer(s): Max Alekseyev, user202729
2 parents 5421127 + 0e5602b commit 713be75

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build/pkgs/configure/checksums.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=3e57fc7934730083eab3cabb135a66b971a088b4
3-
sha256=eedf8f844117ad48408e49218128108f950efd7d31b4c62e1e4d5c17fba9265b
2+
sha1=22b3e6d593dea478344c3bde0f9e0e7a245ec048
3+
sha256=7e0c7b79ade800e46e47f1dd528ab5bc9b892ecb881a8daf5ebea75eb5e8a837
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a9c77acf2428df6899d91b1a943b768a22dafed5
1+
a4ee1626d845158adbb15f5ac48c6ba08537324c

src/bin/sage-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ case "$SAGE_NUM_THREADS,$SAGE_NUM_THREADS_PARALLEL" in
580580
# First, figure out the right values for SAGE_NUM_THREADS (default
581581
# number of threads) and SAGE_NUM_THREADS_PARALLEL (default number of
582582
# threads when parallel execution is asked explicitly).
583-
sage_num_threads_array=$(sage-num-threads.py 2>/dev/null || echo 1 2 1)
583+
sage_num_threads_array=$("$(dirname "$0")"/sage-num-threads.py 2>/dev/null || echo 1 2 1)
584584
sage_num_threads_array="${sage_num_threads_array% *}" # strip third item
585585
SAGE_NUM_THREADS="${sage_num_threads_array% *}" # keep first item
586586
SAGE_NUM_THREADS_PARALLEL="${sage_num_threads_array#* }" # keep second item

0 commit comments

Comments
 (0)