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

Skip to content

Commit 9563a3a

Browse files
authored
Merge pull request #17658 from mattip/simplify
TST: simplify source path names in compilation test
2 parents a8a3fde + 26463e7 commit 9563a3a

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ stages:
217217
BITS: 64
218218
NPY_USE_BLAS_ILP64: '1'
219219
OPENBLAS_SUFFIX: '64_'
220+
Python39-64bit-full:
221+
PYTHON_VERSION: '3.9'
222+
PYTHON_ARCH: 'x64'
223+
TEST_MODE: full
224+
BITS: 64
225+
NPY_USE_BLAS_ILP64: '1'
226+
OPENBLAS_SUFFIX: '64_'
220227
#PyPy36-32bit:
221228
#PYTHON_VERSION: 'PyPy3.6'
222229
#PYTHON_ARCH: 'x32'

numpy/core/tests/examples/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
from setuptools.extension import Extension
1010
import os
1111

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

1514
checks = Extension(
1615
"checks",
17-
sources=[os.path.join(here, "checks.pyx")],
16+
sources=[os.path.join('.', "checks.pyx")],
1817
include_dirs=[np.get_include()],
1918
define_macros=macros,
2019
)

numpy/core/tests/test_cython.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,19 @@ def install_temp(request, tmp_path):
3434
here = os.path.dirname(__file__)
3535
ext_dir = os.path.join(here, "examples")
3636

37-
tmp_path = tmp_path._str
38-
cytest = os.path.join(tmp_path, "cytest")
37+
cytest = str(tmp_path / "cytest")
3938

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

43-
install_log = os.path.join(tmp_path, "tmp_install_log.txt")
42+
install_log = str(tmp_path / "tmp_install_log.txt")
4443
subprocess.check_call(
4544
[
4645
sys.executable,
4746
"setup.py",
4847
"build",
4948
"install",
50-
"--prefix",
51-
os.path.join(tmp_path, "installdir"),
49+
"--prefix", str(tmp_path / "installdir"),
5250
"--single-version-externally-managed",
5351
"--record",
5452
install_log,

numpy/random/_examples/cython/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
lib_path = join(np.get_include(), '..', '..', 'random', 'lib')
2020

2121
extending = Extension("extending",
22-
sources=[join(path, 'extending.pyx')],
22+
sources=[join('.', 'extending.pyx')],
2323
include_dirs=[
2424
np.get_include(),
2525
join(path, '..', '..')
2626
],
2727
define_macros=defs,
2828
)
2929
distributions = Extension("extending_distributions",
30-
sources=[join(path, 'extending_distributions.pyx')],
30+
sources=[join('.', 'extending_distributions.pyx')],
3131
include_dirs=[inc_path],
3232
library_dirs=[lib_path],
3333
libraries=['npyrandom'],

0 commit comments

Comments
 (0)