/[escript]/branches/RW_WIN32/escript/py_src
ViewVC logotype

Log of /branches/RW_WIN32/escript/py_src

View Directory Listing Directory Listing


Sticky Revision:

Revision 232 - Directory Listing
Modified Fri Nov 25 09:59:48 2005 UTC (15 years, 8 months ago) by phornby
1) Rob, could you please set up your editor to not put CR's into the files.
2) The import esys.bruce fails on Linux, but the rest seems OK.

Here is how things go.

If a directory (bruce say) contains an __init__.py, then import esys.bruce actually imports
the __init__.py file. One can either phoney up the namespace by then saying

from bruce import *

in __init__.py (ugly!!) or just rename bruce.py to __init__.py.

All the sub-packages need this treatment. I suggest doing it with the .py files in the
source tree rather than re-naming at build time. Any other modules in the sub-directory
can then be imported into the __init__.py in the usual way in order to make them visible
to the user. Alternatively, any module not imported to __init__.py is invisible to the user.
This is much better than mucking with PYTHON_PATH and LD_LIBRARY_PATH, which has a tendency
to make everything visible, and creates module name clashes in site-packages on occasions. 
The .so associated with a sub-directory should reside with the corresponding __init__.py
that imports it.

Careful use of "from AClass import AClass" and "from ASharedLib import *" in __init__.py
is also a good method of making classes contained in submodules
look like they are in the namespace of the __init__.py, thereby hiding
the intervening module name from the user. That way esys.bruce.AClass.AClass can be morphed
into esys.bruce.AClass, eliminating the annoying intervening module namespace.



Revision 231 - Directory Listing
Modified Fri Nov 25 09:15:24 2005 UTC (15 years, 8 months ago) by phornby
Case sensitive file names.



Revision 229 - Directory Listing
Modified Fri Nov 25 06:17:13 2005 UTC (15 years, 8 months ago) by robwdcock
+ Added Options capability
+ All py files are now compiled and installed into lib directory hierarchy
+ scons now reads custom options from custom.py. Examples are in the scons_custom_templates directory, just copy to top level build dir and rename to custom.py
+ scons_ext.py now has some helper functions for building pyc from python and running unit tests (but only when some dependency changes).



Revision 222 - Directory Listing
Modified Thu Nov 24 12:54:42 2005 UTC (15 years, 8 months ago) by robwdcock
+Unified with linux build (tested on windows only at this point)

Revision 185 - Directory Listing
Modified Sun Nov 20 05:43:12 2005 UTC (15 years, 8 months ago) by robwdcock
Robert Woodcock private branch for win32 port. Will eventually be merged with trunk when build systems are unified.

Revision 157 - Directory Listing
Modified Wed Nov 9 10:01:06 2005 UTC (15 years, 8 months ago) by gross
Original Path: trunk/escript/py_src
initial checkin

Revision 155 - Directory Listing
Modified Wed Nov 9 02:02:19 2005 UTC (15 years, 8 months ago) by jgs
Original Path: trunk/escript/py_src
move all directories from trunk/esys2 into trunk and remove esys2


Revision 154 - Directory Listing
Modified Mon Nov 7 05:51:17 2005 UTC (15 years, 8 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch dev-02 back to main trunk on 2005-11-07


Revision 153 - Directory Listing
Modified Tue Oct 25 01:51:20 2005 UTC (15 years, 9 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch dev-02 back to main trunk on 2005-10-25


Revision 151 - Directory Listing
Modified Thu Sep 22 01:55:00 2005 UTC (15 years, 10 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch dev-02 back to main trunk on 2005-09-22


Revision 150 - Directory Listing
Modified Thu Sep 15 03:44:45 2005 UTC (15 years, 10 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch dev-02 back to main trunk on 2005-09-15


Revision 149 - Directory Listing
Modified Thu Sep 1 03:31:39 2005 UTC (15 years, 11 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch dev-02 back to main trunk on 2005-09-01


Revision 148 - Directory Listing
Modified Tue Aug 23 01:24:31 2005 UTC (15 years, 11 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch dev-02 back to main trunk on 2005-08-23


Revision 147 - Directory Listing
Modified Fri Aug 12 01:45:47 2005 UTC (15 years, 11 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
erge of development branch dev-02 back to main trunk on 2005-08-12


Revision 146 - Directory Listing
Modified Fri Jul 29 01:44:29 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
First merge of development branch dev-02 back to main trunk on 2005-07-29


Revision 143 - Directory Listing
Modified Mon Jul 25 05:39:50 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
moved these files to modellib directory


Revision 142 - Directory Listing
Modified Mon Jul 25 05:28:20 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch back to main trunk on 2005-07-25


Revision 141 - Directory Listing
Modified Mon Jul 25 05:15:41 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
fixed to work with new python source/install directory structure


Revision 128 - Directory Listing
Modified Fri Jul 22 05:13:08 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
removed modellib code from escript source directory


Revision 126 - Directory Listing
Modified Fri Jul 22 03:53:08 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch back to main trunk on 2005-07-22


Revision 124 - Directory Listing
Modified Wed Jul 20 06:14:58 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
added ln(data) style wrapper for data.ln() - also added corresponding
implementation of Ln_Symbol class (not sure if this is right though)


Revision 123 - Directory Listing
Modified Fri Jul 8 04:08:13 2005 UTC (16 years ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch back to main trunk on 2005-07-08


Revision 122 - Directory Listing
Modified Thu Jun 9 05:38:05 2005 UTC (16 years, 1 month ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch back to main trunk on 2005-06-09


Revision 121 - Directory Listing
Modified Fri May 6 04:26:16 2005 UTC (16 years, 2 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch back to main trunk on 2005-05-06


Revision 119 - Directory Listing
Modified Tue Apr 12 04:45:05 2005 UTC (16 years, 3 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 117 - Directory Listing
Modified Fri Apr 1 05:48:57 2005 UTC (16 years, 4 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 114 - Directory Listing
Modified Fri Mar 4 07:12:37 2005 UTC (16 years, 5 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Merge of development branch back to main trunk on 2005-03-04


Revision 113 - Directory Listing
Modified Mon Feb 28 07:06:33 2005 UTC (16 years, 5 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 110 - Directory Listing
Modified Mon Feb 14 04:14:42 2005 UTC (16 years, 5 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 108 - Directory Listing
Modified Thu Jan 27 06:21:59 2005 UTC (16 years, 6 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 105 - Directory Listing
Modified Thu Dec 23 07:20:07 2004 UTC (16 years, 7 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
commit of dev-01 branch back to main trunk on 2004-12-23


Revision 104 - Directory Listing
Modified Fri Dec 17 07:43:12 2004 UTC (16 years, 7 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 102 - Directory Listing
Modified Wed Dec 15 07:08:39 2004 UTC (16 years, 7 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 100 - Directory Listing
Modified Wed Dec 15 03:48:48 2004 UTC (16 years, 7 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 97 - Directory Listing
Modified Tue Dec 14 05:39:33 2004 UTC (16 years, 7 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
*** empty log message ***


Revision 88 - Directory Listing
Modified Wed Oct 27 00:23:36 2004 UTC (16 years, 9 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
fixed minor syntax error


Revision 82 - Directory Listing
Added Tue Oct 26 06:53:54 2004 UTC (16 years, 9 months ago) by jgs
Original Path: trunk/esys2/escript/py_src
Initial revision


  ViewVC Help
Powered by ViewVC 1.1.26