Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TST: simplify source path names in compilation test #17658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ stages:
BITS: 64
NPY_USE_BLAS_ILP64: '1'
OPENBLAS_SUFFIX: '64_'
Python39-64bit-full:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
TEST_MODE: full
BITS: 64
NPY_USE_BLAS_ILP64: '1'
OPENBLAS_SUFFIX: '64_'
#PyPy36-32bit:
#PYTHON_VERSION: 'PyPy3.6'
#PYTHON_ARCH: 'x32'
Expand Down
3 changes: 1 addition & 2 deletions numpy/core/tests/examples/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
from setuptools.extension import Extension
import os

here = os.path.dirname(__file__)
macros = [("NPY_NO_DEPRECATED_API", 0)]

checks = Extension(
"checks",
sources=[os.path.join(here, "checks.pyx")],
sources=[os.path.join('.', "checks.pyx")],
include_dirs=[np.get_include()],
define_macros=macros,
)
Expand Down
8 changes: 3 additions & 5 deletions numpy/core/tests/test_cython.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,19 @@ def install_temp(request, tmp_path):
here = os.path.dirname(__file__)
ext_dir = os.path.join(here, "examples")

tmp_path = tmp_path._str
cytest = os.path.join(tmp_path, "cytest")
cytest = str(tmp_path / "cytest")

shutil.copytree(ext_dir, cytest)
# build the examples and "install" them into a temporary directory

install_log = os.path.join(tmp_path, "tmp_install_log.txt")
install_log = str(tmp_path / "tmp_install_log.txt")
subprocess.check_call(
[
sys.executable,
"setup.py",
"build",
"install",
"--prefix",
os.path.join(tmp_path, "installdir"),
"--prefix", str(tmp_path / "installdir"),
"--single-version-externally-managed",
"--record",
install_log,
Expand Down
4 changes: 2 additions & 2 deletions numpy/random/_examples/cython/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
lib_path = join(np.get_include(), '..', '..', 'random', 'lib')

extending = Extension("extending",
sources=[join(path, 'extending.pyx')],
sources=[join('.', 'extending.pyx')],
include_dirs=[
np.get_include(),
join(path, '..', '..')
],
define_macros=defs,
)
distributions = Extension("extending_distributions",
sources=[join(path, 'extending_distributions.pyx')],
sources=[join('.', 'extending_distributions.pyx')],
include_dirs=[inc_path],
library_dirs=[lib_path],
libraries=['npyrandom'],
Expand Down