fix typo in Makefile and remove make logfile after run
authorLisandro Dalcin <dalcinl@gmail.com>
Thu, 11 Mar 2010 18:08:54 +0000 (15:08 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Thu, 11 Mar 2010 18:08:54 +0000 (15:08 -0300)
Demos/embed/Makefile
runtests.py

index 2117e558ccb8c85ab5bdc9f2d6ca4955c82db487..0cdb7b44002dc83913692cdd780090deaf535201 100644 (file)
@@ -1,6 +1,6 @@
 # Makefile for creating our standalone Cython program
 PYTHON=python
-PYVERSION=$(shell ($PYTHON) -c "import sys; print(sys.version[:3])")
+PYVERSION=$(shell $(PYTHON) -c "import sys; print(sys.version[:3])")
 PYPREFIX=$(shell $(PYTHON) -c "import sys; print(sys.prefix)")
 LINKFORSHARED=$(shell $(PYTHON) -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LINKFORSHARED'))")
 INCLUDES=-I$(PYPREFIX)/include/python$(PYVERSION)
index e06873e2094f34b5f1dd20d688c228aa0350d27e..226bf9dd931956b51c22d0a1906ea73a9effb829 100644 (file)
@@ -633,6 +633,10 @@ class EmbedTest(unittest.TestCase):
     def test_embed(self):
         self.assert_(os.system(
             "make PYTHON='%s' test > make.output" % sys.executable) == 0)
+        try:
+            os.remove('make.output')
+        except OSError:
+            pass
 
 class MissingDependencyExcluder:
     def __init__(self, deps):