Skip to content

Commit

Permalink
Rename BUILD to TEST_TMP for bazel support.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed Sep 16, 2016
1 parent a0bbb94 commit f7a7bc6
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Cython/Tempita/*.c

Tools/*.elc

BUILD/
TEST_TMP/
build/
!tests/build/
dist/
Expand Down
2 changes: 1 addition & 1 deletion .hgignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Cython/Compiler/*.c
Cython/Plex/*.c
Cython/Runtime/refnanny.c

BUILD/
TEST_TMP/
build/
dist/
.git/
Expand Down
4 changes: 2 additions & 2 deletions Cython/Build/Tests/TestInline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@

# 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
Expand Down
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
2 changes: 1 addition & 1 deletion tests/pyximport/pyximport_basic.srctree
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/pyximport/pyximport_errors.srctree
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/pyximport/pyximport_pyimport.srctree
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7a7bc6

Please sign in to comment.