Commit f7a7bc6b authored by Robert Bradshaw's avatar Robert Bradshaw

Rename BUILD to TEST_TMP for bazel support.

parent a0bbb940
......@@ -14,7 +14,7 @@ Cython/Tempita/*.c
Tools/*.elc
BUILD/
TEST_TMP/
build/
!tests/build/
dist/
......
......@@ -10,7 +10,7 @@ Cython/Compiler/*.c
Cython/Plex/*.c
Cython/Runtime/refnanny.c
BUILD/
TEST_TMP/
build/
dist/
.git/
......
......@@ -17,8 +17,8 @@ class TestInline(CythonTest):
def setUp(self):
CythonTest.setUp(self)
self.test_kwds = dict(test_kwds)
if os.path.isdir('BUILD'):
lib_dir = os.path.join('BUILD','inline')
if os.path.isdir('TEST_TMP'):
lib_dir = os.path.join('TEST_TMP','inline')
else:
lib_dir = tempfile.mkdtemp(prefix='cython_inline_')
self.test_kwds['lib_dir'] = lib_dir
......
......@@ -34,7 +34,7 @@ clean:
@(cd Demos; $(MAKE) clean)
testclean:
rm -fr BUILD
rm -fr BUILD TEST_TMP
test: testclean
${PYTHON} runtests.py -vv ${TESTOPTS}
......
......@@ -100,7 +100,7 @@ today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['py*', 'build', 'BUILD']
exclude_patterns = ['py*', 'build', 'BUILD', 'TEST_TMP']
# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
......
......@@ -1764,7 +1764,7 @@ def main():
help="exit without error code even on test failures")
parser.add_option("--root-dir", dest="root_dir", default=os.path.join(DISTDIR, 'tests'),
help="working directory")
parser.add_option("--work-dir", dest="work_dir", default=os.path.join(os.getcwd(), 'BUILD'),
parser.add_option("--work-dir", dest="work_dir", default=os.path.join(os.getcwd(), 'TEST_TMP'),
help="working directory")
parser.add_option("--cython-dir", dest="cython_dir", default=os.getcwd(),
help="Cython installation directory (default: use local source version)")
......
......@@ -6,7 +6,7 @@ PYTHON -c "import basic_test; basic_test.test()"
import os.path
import pyximport
pyximport.install(build_dir=os.path.join(os.path.dirname(__file__), "BUILD"))
pyximport.install(build_dir=os.path.join(os.path.dirname(__file__), "TEST_TMP"))
def test():
import mymodule
......
......@@ -7,7 +7,7 @@ import os.path
from contextlib import contextmanager
import pyximport
pyximport.install(build_dir=os.path.join(os.path.dirname(__file__), "BUILD"))
pyximport.install(build_dir=os.path.join(os.path.dirname(__file__), "TEST_TMP"))
@contextmanager
def fails(exc=ImportError):
......
......@@ -11,7 +11,7 @@ import pyximport.pyxbuild, Cython.Compiler.Pipeline
import distutils.core, distutils.ccompiler, distutils.command.build
pyximport.install(pyximport=False, pyimport=True,
build_dir=os.path.join(os.path.dirname(__file__), "BUILD"))
build_dir=os.path.join(os.path.dirname(__file__), "TEST_TMP"))
def test():
import mymodule
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment