Skip to content

Commit

Permalink
we can use Cython 0.25 without modification now
Browse files Browse the repository at this point in the history
  • Loading branch information
Daetalus committed Sep 26, 2016
1 parent 19baa92 commit b09847a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 292 deletions.
6 changes: 1 addition & 5 deletions test/extra/lxml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ def install_and_test_lxml():
os.makedirs(SRC_DIR)

url = "https://github.com/cython/cython"
subprocess.check_call(["git", "clone", "--depth", "1", "--branch", "0.24", url], cwd=SRC_DIR)

PATCH_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "../integration/Cython-0.24.patch"))
subprocess.check_call(["patch", "-p1", "--input=" + PATCH_FILE], cwd=CYTHON_DIR)
print ">>> Applied Cython patch"
subprocess.check_call(["git", "clone", "--depth", "1", "--branch", "0.25a0", url], cwd=SRC_DIR)

subprocess.check_call([PYTHON_EXE, "setup.py", "install"], cwd=CYTHON_DIR)
subprocess.check_call([PYTHON_EXE, "-c", "import Cython"], cwd=CYTHON_DIR)
Expand Down
8 changes: 1 addition & 7 deletions test/extra/numpy_fulltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ def print_progress_header(text):
if not os.path.exists(CYTHON_DIR):

url = "https://github.com/cython/cython"
subprocess.check_call(["git", "clone", "--depth", "1", "--branch", "0.24", url], cwd=SRC_DIR)

if USE_CUSTOM_PATCHES:
PATCH_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "../integration/Cython-0.24.patch"))
subprocess.check_call(["patch", "-p1", "--input=" + PATCH_FILE], cwd=CYTHON_DIR)
print ">>> Applied Cython patch"

subprocess.check_call(["git", "clone", "--depth", "1", "--branch", "0.25a0", url], cwd=SRC_DIR)

try:
subprocess.check_call([PYTHON_EXE, "setup.py", "install"], cwd=CYTHON_DIR)
Expand Down
274 changes: 0 additions & 274 deletions test/integration/Cython-0.24.patch

This file was deleted.

7 changes: 1 addition & 6 deletions test/integration/scipy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ def print_progress_header(text):
if not os.path.exists(CYTHON_DIR):

url = "https://github.com/cython/cython"
subprocess.check_call(["git", "clone", "--depth", "1", "--branch", "0.24", url], cwd=SRC_DIR)

if USE_CUSTOM_PATCHES:
PATCH_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "Cython-0.24.patch"))
subprocess.check_call(["patch", "-p1", "--input=" + PATCH_FILE], cwd=CYTHON_DIR)
print ">>> Applied Cython patch"
subprocess.check_call(["git", "clone", "--depth", "1", "--branch", "0.25a0", url], cwd=SRC_DIR)

try:
subprocess.check_call([PYTHON_EXE, "setup.py", "install"], cwd=CYTHON_DIR)
Expand Down

0 comments on commit b09847a

Please sign in to comment.