Changeset 9699
- Timestamp:
- Feb 27, 2015, 2:29:45 PM (9 years ago)
- Location:
- trunk/anuga_core/anuga/pmesh
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/anuga/pmesh/README.txt
r9593 r9699 1 SYSTEM REQUIREMENTS2 Pmesh requires many bits and pieces from the rest of the ANUGA code.3 4 It's system requirements are the same as ANUGA5 1 6 INSTALLATION COMMANDS7 To compile, do8 scones9 10 11 GENERAL RUNNING12 To run all the unit tests;13 python test_all.py14 2 15 3 To run pmesh; … … 24 12 25 13 In general the left mouse button will add an object and the right 26 mouse button will select an object. A selected object can de deleted14 mouse button will select an object. A selected object can deleted 27 15 by pressing the the middle mouse button (scroll bar). 28 16 29 NOTES30 I have examples of running triangle in31 nautilus /home/duncan/MeshGen/triangle_old32 33 CREATING A PMESH EXECUTABLE34 Note, this has not been tried for about 2 years.35 36 There is a package called py2exe which can take a Python script and37 package it up along with any other scripts it imports and a Python38 interpreter into a single .exe. It will also find any DLLs your script39 depends on and copy them too.40 41 The packaging process:42 17 43 18 44 1)Install py2exe. This only needs to be done once on a machine.45 46 2)Make a static version of Pmw. Pmesh uses a package called Pmw which47 normally dynamically loads pieces of itself as needed. This doesn't48 work with py2exe, so we need to fix it. You'll only need to do this49 once; if you make a change to your script and50 repackage you can skip this step.51 52 cd to c:\python22\lib\site-packages\Pmw\Pmw_1_1\bin. (Assuming python53 is installed in the default c:\python22; change the paths if you54 installed Python somewhere else.55 56 run "python bundlepmw.py57 c:\python22\lib\site-packages\Pmw\Pmw_1_1\lib". This will create a58 file called "Pmw.py" in the current directory.59 60 copy "Pmw.py" to your main script directory.61 62 copy "..\lib\PmwBlt.py" and "..\lib\PmwColor.py" to your main script63 directory, too.64 65 3) Do the command "python exesetup.py py2exe" This will create a dist directory with the pmesh executable.
Note: See TracChangeset
for help on using the changeset viewer.