Skip to content

Commit 7debfc5

Browse files
committed
Move with_rebuilt script to a module
so that it's runnable in Windows as well.
1 parent d2c09e6 commit 7debfc5

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

julia/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
from . import with_rebuilt
12
from .core import JuliaError, LegacyJulia as Julia

ci/with_rebuilt renamed to julia/with_rebuilt.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
#!/usr/bin/env python
2-
31
"""
42
(Maybe) Re-build PyCall.jl to test ``exe_differs=False`` path.
53
64
``Pkg.build("PyCall")`` is run on Julia side when the environment
75
variable `PYJULIA_TEST_REBUILD` is set to ``yes``.
86
"""
97

10-
from __future__ import print_function
8+
from __future__ import print_function, absolute_import
119

1210
import os
1311
import subprocess
1412
import sys
1513
from contextlib import contextmanager
1614

17-
from julia.core import juliainfo
15+
from .core import juliainfo
1816

1917

2018
@contextmanager

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ deps =
66
pytest
77
numpy
88
commands =
9-
{toxinidir}/ci/with_rebuilt -- python -m pytest {posargs}
9+
python -m julia.with_rebuilt -- python -m pytest {posargs}
1010
# Using "python -m pytest" to exactly match the Python interpreter
11-
# used to build PyCall.jl via ci/with_rebuilt (when
11+
# used to build PyCall.jl via julia/with_rebuilt.py (when
1212
# PYJULIA_TEST_REBUILD=yes).
1313

1414
passenv =
@@ -17,6 +17,6 @@ passenv =
1717
# https://github.com/JuliaDiffEq/diffeqpy/pull/13/commits/850441ee63962a2417de2bce6f6223052ee9cceb
1818
SSL_CERT_FILE
1919

20-
# See: test/test_core.py
20+
# See: julia/with_rebuilt.py
2121
PYJULIA_TEST_REBUILD
2222
JULIA_EXE

0 commit comments

Comments
 (0)