[Numpy-svn] r4163 - in branches/numpy.scons: . numpy/scons_fake numpy/scons_fake/ctypesext numpy/scons_fake/ctypesext/tests numpy/scons_fake/pyext numpy/scons_fake/pyext/tests

numpy-svn@scip... numpy-svn@scip...
Tue Oct 9 21:28:38 CDT 2007


Author: cdavid
Date: 2007-10-09 21:27:53 -0500 (Tue, 09 Oct 2007)
New Revision: 4163

Added:
   branches/numpy.scons/numpy/scons_fake/__init__.py
   branches/numpy.scons/numpy/scons_fake/pyext/__init__.py
   branches/numpy.scons/test.sh
Modified:
   branches/numpy.scons/
   branches/numpy.scons/numpy/scons_fake/ctypesext/__init__.py
   branches/numpy.scons/numpy/scons_fake/ctypesext/tests/test_foo_py.py
   branches/numpy.scons/numpy/scons_fake/pyext/tests/test_spam.py
Log:
Make scons_fake a realy python package, for the tests to work


Property changes on: branches/numpy.scons
___________________________________________________________________
Name: bzr:revision-info
   - timestamp: 2007-10-10 07:52:59.790999889 +0900
committer: david <david@david-laptop>
properties: 
	branch-nick: numpy.scons

   + timestamp: 2007-10-10 11:17:10.790999889 +0900
committer: David Cournapeau <david@ar.media.kyoto-u.ac.jp>
properties: 
	branch-nick: numpy.scons

Name: bzr:file-ids
   - numpy/scons_fake/setup.py	setup.py-20071009225234-65q3519bx0wvuhyp-1
numpy/scons_fake/pyext/SConstruct	sconstruct-20071009225241-1u6tr190flp1g15l-1
numpy/scons_fake/pyext/setup.py	setup.py-20071009225238-6cteldy08e4udc0o-1

   + test.sh	test.sh-20071010021651-sb161covas3h5rf8-1
numpy/scons_fake/__init__.py	__init__.py-20071010021643-a8zje05xk9kn70r1-1
numpy/scons_fake/pyext/__init__.py	__init__.py-20071010021648-c3je6ovvif87gtea-1

Name: bzr:revision-id:v3-trunk0
   - 3737 david@david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david@david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david@david-laptop-20070920081910-phlk1ujthksgpm0z
3740 david@david-laptop-20070920082641-bdhrt6eafeoli50i
3741 david@ar.media.kyoto-u.ac.jp-20070920130730-satdeppbh1k0bq2p
3743 david@ar.media.kyoto-u.ac.jp-20070921073742-vpv8pwv0j8fbd93m
3744 david@david-laptop-20070922101656-61kfi2faucemr2rl
3745 david@david-laptop-20070922113708-ror18thshang1cpu
3747 david@david-laptop-20070922140534-n9xsl096tjrzmct1
3749 david@david-laptop-20070922154007-usit009fr6vp377j
3750 david@david-laptop-20070923070011-leu2ozc2fy1q5cht
3751 david@david-laptop-20070924015925-dhsiao40jp7zsfp9
3752 david@ar.media.kyoto-u.ac.jp-20070924070657-nbw23j0ayan30cli
3753 david@ar.media.kyoto-u.ac.jp-20070924082918-i1lc1zikywi8czj4
3754 david@ar.media.kyoto-u.ac.jp-20070924083008-c0edtt8zs31yeh1q
3755 david@ar.media.kyoto-u.ac.jp-20070924112351-pnnho638cohz6lj1
3756 david@david-laptop-20070924153247-yftud00bynilxv69
3757 david@david-laptop-20070924163545-pish34x9fq2h66aj
3758 david@david-laptop-20070924164633-iiyygcaw81ji3n34
3759 david@david-laptop-20070924170201-y14v2yzikdpvamfp
3760 david@david-laptop-20070924171208-5bmitorzf49d1aa2
3761 david@david-laptop-20070925014444-ns9v90gotnxt39mq
3769 david@david-laptop-20070925145952-4osi81tvch7v6luj
3773 david@ar.media.kyoto-u.ac.jp-20070926073429-2kdc6yf1o210aer0
3774 david@ar.media.kyoto-u.ac.jp-20070926084356-938djoytjap90rmo
3775 david@ar.media.kyoto-u.ac.jp-20070926085329-3gquq3gu2k8rgzb0
3776 david@ar.media.kyoto-u.ac.jp-20071009084906-9kradhwpu7su633x
3777 david@ar.media.kyoto-u.ac.jp-20071009093339-q5nf5me6ikdi48k6
3778 david@david-laptop-20071009152108-xh5cltii0h6zjk9b
3779 david@david-laptop-20071009154954-v5se05gbq60opo1z
3780 david@david-laptop-20071009223102-vz2sgf5i6pncxsd8
3781 david@david-laptop-20071009225259-13m6enwqk4w9uihe

   + 3737 david@david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david@david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david@david-laptop-20070920081910-phlk1ujthksgpm0z
3740 david@david-laptop-20070920082641-bdhrt6eafeoli50i
3741 david@ar.media.kyoto-u.ac.jp-20070920130730-satdeppbh1k0bq2p
3743 david@ar.media.kyoto-u.ac.jp-20070921073742-vpv8pwv0j8fbd93m
3744 david@david-laptop-20070922101656-61kfi2faucemr2rl
3745 david@david-laptop-20070922113708-ror18thshang1cpu
3747 david@david-laptop-20070922140534-n9xsl096tjrzmct1
3749 david@david-laptop-20070922154007-usit009fr6vp377j
3750 david@david-laptop-20070923070011-leu2ozc2fy1q5cht
3751 david@david-laptop-20070924015925-dhsiao40jp7zsfp9
3752 david@ar.media.kyoto-u.ac.jp-20070924070657-nbw23j0ayan30cli
3753 david@ar.media.kyoto-u.ac.jp-20070924082918-i1lc1zikywi8czj4
3754 david@ar.media.kyoto-u.ac.jp-20070924083008-c0edtt8zs31yeh1q
3755 david@ar.media.kyoto-u.ac.jp-20070924112351-pnnho638cohz6lj1
3756 david@david-laptop-20070924153247-yftud00bynilxv69
3757 david@david-laptop-20070924163545-pish34x9fq2h66aj
3758 david@david-laptop-20070924164633-iiyygcaw81ji3n34
3759 david@david-laptop-20070924170201-y14v2yzikdpvamfp
3760 david@david-laptop-20070924171208-5bmitorzf49d1aa2
3761 david@david-laptop-20070925014444-ns9v90gotnxt39mq
3769 david@david-laptop-20070925145952-4osi81tvch7v6luj
3773 david@ar.media.kyoto-u.ac.jp-20070926073429-2kdc6yf1o210aer0
3774 david@ar.media.kyoto-u.ac.jp-20070926084356-938djoytjap90rmo
3775 david@ar.media.kyoto-u.ac.jp-20070926085329-3gquq3gu2k8rgzb0
3776 david@ar.media.kyoto-u.ac.jp-20071009084906-9kradhwpu7su633x
3777 david@ar.media.kyoto-u.ac.jp-20071009093339-q5nf5me6ikdi48k6
3778 david@david-laptop-20071009152108-xh5cltii0h6zjk9b
3779 david@david-laptop-20071009154954-v5se05gbq60opo1z
3780 david@david-laptop-20071009223102-vz2sgf5i6pncxsd8
3781 david@david-laptop-20071009225259-13m6enwqk4w9uihe
3782 david@ar.media.kyoto-u.ac.jp-20071010021710-liz2jvw0ggbxrtgi


Added: branches/numpy.scons/numpy/scons_fake/__init__.py
===================================================================
--- branches/numpy.scons/numpy/scons_fake/__init__.py	2007-10-09 23:17:14 UTC (rev 4162)
+++ branches/numpy.scons/numpy/scons_fake/__init__.py	2007-10-10 02:27:53 UTC (rev 4163)
@@ -0,0 +1,2 @@
+import pyext
+import ctypesext

Modified: branches/numpy.scons/numpy/scons_fake/ctypesext/__init__.py
===================================================================
--- branches/numpy.scons/numpy/scons_fake/ctypesext/__init__.py	2007-10-09 23:17:14 UTC (rev 4162)
+++ branches/numpy.scons/numpy/scons_fake/ctypesext/__init__.py	2007-10-10 02:27:53 UTC (rev 4163)
@@ -1,7 +1,6 @@
 from foo_py import foo
-from spam import system
 
-__all__ = ['foo', 'system']
+__all__ = ['foo']
 def test(level=1, verbosity=1):
     from numpy.testing import NumpyTest
     return NumpyTest().test(level, verbosity)

Modified: branches/numpy.scons/numpy/scons_fake/ctypesext/tests/test_foo_py.py
===================================================================
--- branches/numpy.scons/numpy/scons_fake/ctypesext/tests/test_foo_py.py	2007-10-09 23:17:14 UTC (rev 4162)
+++ branches/numpy.scons/numpy/scons_fake/ctypesext/tests/test_foo_py.py	2007-10-10 02:27:53 UTC (rev 4163)
@@ -1,10 +1,10 @@
 from numpy.testing import *
 
-from numpy.scons_fake import foo
+from numpy.scons_fake.ctypesext import foo
 
 class test_ra(NumpyTestCase):
     def test(self):
         foo()
 
 if __name__ == "__main__":
-    NumpyTest('numpy.scons_fake.foo').run()
+    NumpyTest('numpy.scons_fake.ctypesext').run()

Added: branches/numpy.scons/numpy/scons_fake/pyext/__init__.py
===================================================================
--- branches/numpy.scons/numpy/scons_fake/pyext/__init__.py	2007-10-09 23:17:14 UTC (rev 4162)
+++ branches/numpy.scons/numpy/scons_fake/pyext/__init__.py	2007-10-10 02:27:53 UTC (rev 4163)
@@ -0,0 +1,6 @@
+from spam import system
+
+__all__ = ['system']
+def test(level=1, verbosity=1):
+    from numpy.testing import NumpyTest
+    return NumpyTest().test(level, verbosity)

Modified: branches/numpy.scons/numpy/scons_fake/pyext/tests/test_spam.py
===================================================================
--- branches/numpy.scons/numpy/scons_fake/pyext/tests/test_spam.py	2007-10-09 23:17:14 UTC (rev 4162)
+++ branches/numpy.scons/numpy/scons_fake/pyext/tests/test_spam.py	2007-10-10 02:27:53 UTC (rev 4163)
@@ -1,10 +1,10 @@
 from numpy.testing import *
 
-from numpy.scons_fake import spam
+from numpy.scons_fake.pyext import spam
 
 class test_ra(NumpyTestCase):
     def test(self):
         spam.system('dir')
 
 if __name__ == "__main__":
-    NumpyTest('numpy.scons_fake.foo').run()
+    NumpyTest('numpy.scons_fake.pyext').run()

Added: branches/numpy.scons/test.sh
===================================================================
--- branches/numpy.scons/test.sh	2007-10-09 23:17:14 UTC (rev 4162)
+++ branches/numpy.scons/test.sh	2007-10-10 02:27:53 UTC (rev 4163)
@@ -0,0 +1,5 @@
+PREFIX=/usr/media/src/src/dsp/bzrversion/numpy.scons/tmp
+#rm -rf build
+rm -rf $PREFIX
+python setup.py install --prefix=$PREFIX
+(cd $PREFIX && PYTHONPATH=$PREFIX/lib/python2.5/site-packages python -c "import numpy; print numpy; numpy.test(level = 9999)")



More information about the Numpy-svn mailing list