source: inundation/ga/storm_surge/pmesh/README @ 1453

Last change on this file since 1453 was 1279, checked in by duncan, 20 years ago

update

File size: 2.9 KB
Line 
1SYSTEM REQUIREMENTS
2 
3Python, with Pmw must be installed to use pmesh.  Read the
4starting.html file that comes with pmw with regrads to how it is
5installed.(quick install advice: install pmw in the
6python2.2/site-packages dir) (Python and pmw are in the downloads
7directory)
8
9INSTALLATION COMMANDS, FOR LINUX
10
11This is necessary to complite triangle for using pmesh graphically and
12the pmesh.mesh script.
13       
14To build triangle, as root;
15        python setup.py install
16       
17To build the python package, as a user;
18        python setup.py install --prefix=~
19       
20        This will create a python directory, off the users home directory.
21        Add the path of this directory into your .bashrc
22        for example;   
23        export PYTHONPATH=$HOME/lib/python2.2/site-packages:"${PYTHONPATH}"
24        another example;
25        export PYTHONPATH=$HOME/lib64/python2.3/site-packages:"${PYTHONPATH}"
26
27INSTALLATION COMMANDS, FOR WINDOWS
28To compile using Microsoft Visual c++,
29        python setup.py install
30
31Other compilers have not been intestigated.
32       
33GENERAL RUNNING
34To run all tests Harnesses;
35        python TestRunner.py
36       
37To run pmesh;
38        python pmesh.py
39       
40INSTRUCTIONS FOR USING PMESH
41
42Pmesh will let the user select various modes. The current
43allowable modes are vertex or segment.  The mode describes what sort
44of object is added or selected in response to mouse clicks.  When
45changing modes any prior selected objects become deselected.
46
47In general the left mouse button will add an object and the right
48mouse button will select an object.  A selected object can de deleted
49by pressing the the middle mouse button (scroll bar).
50
51NOTES
52I have examples of running triangle in
53 nautilus /home/duncan/MeshGen/triangle_old
54
55CREATING A PMESH EXECUTABLE
56
57There is a package called py2exe which can take a Python script and
58package it up along with any other scripts it imports and a Python
59interpreter into a single .exe. It will also find any DLLs your script
60depends on and copy them too.
61
62The packaging process:
63
64
651)Install py2exe. This only needs to be done once on a machine.
66
672)Make a static version of Pmw. Pmesh uses a package called Pmw which
68normally dynamically loads pieces of itself as needed. This doesn't
69work with py2exe, so we need to fix it. You'll only need to do this
70once; if you make a change to your script and
71repackage you can skip this step.
72
73  cd to c:\python22\lib\site-packages\Pmw\Pmw_1_1\bin. (Assuming python
74  is installed in the default c:\python22; change the paths if you
75  installed Python somewhere else.
76
77  run "python bundlepmw.py
78  c:\python22\lib\site-packages\Pmw\Pmw_1_1\lib". This will create a
79  file called "Pmw.py" in the current directory.
80
81  copy "Pmw.py" to your main script directory.
82
83  copy "..\lib\PmwBlt.py" and "..\lib\PmwColor.py" to your main script
84  directory, too.
85
863) Do the command "python exesetup.py py2exe"  This will create a dist directory with the pmesh executable.
Note: See TracBrowser for help on using the repository browser.