This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
160 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
# Run the Python interpreter that we are currently building Sage with | ||
# | ||
# An existing Python is a build-time dependency for Sage, but | ||
# sometimes packages need to specifically run the one in Sage and not | ||
# just any Python interpreter. | ||
# | ||
# This is similar to the sage-pip-install script, which you should be | ||
# using for installing Python packages if at all possible. | ||
|
||
|
||
if [ "$SAGE_PYTHON3" = yes ]; then | ||
PYTHON="$SAGE_LOCAL/bin/python3" | ||
else | ||
PYTHON="$SAGE_LOCAL/bin/python2" | ||
fi | ||
|
||
|
||
exec $PYTHON "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tarball=numpy-VERSION.tar.gz | ||
sha1=5fbfde55b1d4b07cc449b10395472ffa41ec00c1 | ||
md5=2f44a895a8104ffac140c3a70edbd450 | ||
cksum=4092335543 | ||
sha1=8eb0e29bf93c2f283d7691587b6322686d5baf0d | ||
md5=2abe6efb8ea0ac1716d1fc5fa90cbacf | ||
cksum=1617766273 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.11.1.p0 | ||
1.12.1 |
28 changes: 0 additions & 28 deletions
28
build/pkgs/numpy/patches/numpy-1.10.1-asarray_conversion.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$(PYTHON) setuptools | ||
python2 python3 setuptools | ||
|
||
---------- | ||
All lines of this file are ignored except the first. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$(PYTHON) | ||
python2 python3 | ||
|
||
---------- | ||
All lines of this file are ignored except the first. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# We should avoid running pip while uninstalling a package because that | ||
# is prone to race conditions. This script runs pip under a lock. | ||
# For details, see https://trac.sagemath.org/ticket/21672 | ||
|
||
|
||
import sys | ||
import os | ||
import fcntl | ||
|
||
|
||
# Parse commandline (really just argv[1]). | ||
# By default, we apply an exclusive (write) lock. If the string "SHARED" | ||
# is given as first argument, we apply a shared (read) lock instead. | ||
|
||
locktype = fcntl.LOCK_EX | ||
if len(sys.argv) >= 1 and sys.argv[1] == "SHARED": | ||
sys.argv.pop(1) | ||
locktype = fcntl.LOCK_SH | ||
sys.argv[0] = "pip3" | ||
|
||
|
||
# Open lockfile and lock it | ||
lockdir = os.path.join(sys.prefix, "var", "lock") | ||
try: | ||
os.makedirs(lockdir) | ||
except OSError: | ||
if not os.path.isdir(lockdir): | ||
raise | ||
|
||
lockfile = os.path.join(lockdir, "pip3.lock") | ||
lock = open(lockfile, "w+") | ||
|
||
# First try a non-blocking lock such that we can give an informative | ||
# message while the user is waiting. | ||
try: | ||
fcntl.flock(lock, locktype | fcntl.LOCK_NB) | ||
except IOError: | ||
if locktype == fcntl.LOCK_SH: | ||
kind = "shared" | ||
else: | ||
kind = "exclusive" | ||
sys.stderr.write("Waiting for {0} lock to run {1} ... ".format(kind, " ".join(sys.argv))) | ||
sys.stderr.flush() | ||
fcntl.flock(lock, locktype) | ||
sys.stderr.write("ok\n") | ||
sys.stderr.flush() | ||
|
||
|
||
# Finally run pip (in this Python session). | ||
# Note that the import of pkg_resources must happen under the lock! | ||
from pkg_resources import load_entry_point | ||
sys.exit( | ||
load_entry_point('pip', 'console_scripts', 'pip3')() | ||
) |