-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #949 from pasdeloup/pr-scipy_1.5.4
Update SciPy version
- Loading branch information
Showing
5 changed files
with
110 additions
and
130 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,50 @@ | ||
#!/usr/bin/env python3 | ||
# | ||
# Filter compiler command line to remove include and library directories which are not | ||
# in known safe locations. | ||
|
||
import os | ||
from os.path import abspath, commonpath, dirname | ||
import sys | ||
|
||
|
||
# This covers the source directory, the host environment and the build environment. | ||
valid_dirs = [abspath(f"{dirname(sys.argv[0])}/../..")] | ||
|
||
def is_valid(dir, prefix): | ||
if any(commonpath([vd, abspath(dir)]) == vd for vd in valid_dirs): | ||
return True | ||
else: | ||
print(f"Chaquopy: ignored invalid {prefix} directory: {dir!r}", file=sys.stderr) | ||
return False | ||
|
||
|
||
def main(): | ||
args_in = sys.argv[1:] | ||
args_out = [] | ||
|
||
i = 0 | ||
while i < len(args_in): | ||
arg = args_in[i] | ||
for prefix in ["-I", "-L"]: | ||
if arg.startswith(prefix): | ||
if arg == prefix: | ||
i += 1 | ||
dir = args_in[i] | ||
if is_valid(dir, prefix): | ||
args_out += [arg, dir] | ||
else: | ||
dir = arg[2:] | ||
if is_valid(dir, prefix): | ||
args_out.append(arg) | ||
break | ||
else: | ||
args_out.append(arg) | ||
|
||
i += 1 | ||
|
||
os.execv(args_out[0], args_out) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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,20 +1,11 @@ | ||
{% if PY_VER == "3.8" %} | ||
{% set numpy_version = "1.19.5" %} | ||
{% else %} | ||
{% set numpy_version = "1.23.3" %} | ||
{% endif %} | ||
|
||
package: | ||
name: scipy | ||
version: "1.4.1" | ||
version: "1.6.3" | ||
|
||
requirements: | ||
build: | ||
- fortran | ||
# setup.py has pybind11 in setup_requires, but this doesn't work because the headers aren't | ||
# unpacked correctly (https://github.com/pybind/python_example/issues/16). | ||
- pybind11 2.4.3 | ||
host: | ||
- chaquopy-libgfortran 4.9 | ||
- chaquopy-openblas 0.2.20 | ||
- numpy {{ numpy_version }} | ||
- numpy 1.20.3 |
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