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