Changeset 9590
- Timestamp:
- Feb 2, 2015, 8:28:56 PM (10 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/anuga/__init__.py
r9588 r9590 27 27 28 28 from .version import git_revision as __git_revision__ 29 from .version import svn_revision as __svn_revision__ 29 30 from .version import version as __version__ 30 31 31 32 32 33 34 # We first need to detect if we're being called as part of the numpy setup 33 # We first need to detect if we're being called as part of the anuga setup 35 34 # procedure itself in a reliable manner. 36 35 try: -
trunk/anuga_core/anuga/file_conversion/sts2sww_mesh.py
r9551 r9590 51 51 52 52 number_of_points = nrows*ncols 53 points_utm = num. empty((number_of_points,2),float)53 points_utm = num.zeros((number_of_points,2),num.float) 54 54 points_utm[:,0]=x+x_origin 55 55 points_utm[:,1]=y+y_origin -
trunk/anuga_core/anuga/shallow_water/tests/test_shallow_water_domain.py
r9566 r9590 7102 7102 7103 7103 7104 # Get path where thi s test is run7104 # Get path where thie data file are 7105 7105 path = get_pathname_from_package('anuga.shallow_water') 7106 7106 … … 7151 7151 interior_regions.append( [polygon, 100] ) 7152 7152 7153 meshname = 'offending_mesh .msh'7153 meshname = 'offending_mesh_1.msh' 7154 7154 create_mesh_from_regions(bounding_polygon, 7155 7155 boundary_tags={'south': [0], 'east': [1], … … 7167 7167 #---------------------------------------------------------------------- 7168 7168 7169 points_file = os.path.join(path, 'offending_point.pts')7169 points_file = 'offending_point_1.pts' 7170 7170 7171 7171 # Offending point … … 7217 7217 path = get_pathname_from_package('anuga.shallow_water') 7218 7218 7219 meshname = 'test_mesh .msh'7219 meshname = 'test_mesh_2.msh' 7220 7220 7221 7221 W = 304180 -
trunk/anuga_core/setup.py
r9589 r9590 63 63 64 64 return filter(str.isdigit, "$Revision$") 65 66 67 65 68 66 … … 173 171 return config 174 172 175 def check_submodules(): 176 """ verify that the submodules are checked out and clean 177 use `git submodule update --init`; on failure 178 """ 179 if not os.path.exists('.git'): 180 return 181 with open('.gitmodules') as f: 182 for l in f: 183 if 'path' in l: 184 p = l.split('=')[-1].strip() 185 if not os.path.exists(p): 186 raise ValueError('Submodule %s missing' % p) 187 188 189 proc = subprocess.Popen(['git', 'submodule', 'status'], 190 stdout=subprocess.PIPE) 191 status, _ = proc.communicate() 192 status = status.decode("ascii", "replace") 193 for line in status.splitlines(): 194 if line.startswith('-') or line.startswith('+'): 195 raise ValueError('Submodule not clean: %s' % line) 196 197 from distutils.command.sdist import sdist 198 199 class sdist_checked(sdist): 200 """ check submodules on sdist to prevent incomplete tarballs """ 201 def run(self): 202 check_submodules() 203 sdist.run(self) 204 205 def generate_cython(): 206 cwd = os.path.abspath(os.path.dirname(__file__)) 207 print("Cythonizing sources") 208 p = subprocess.call([sys.executable, 209 os.path.join(cwd, 'tools', 'cythonize.py'), 210 'numpy/random'], 211 cwd=cwd) 212 if p != 0: 213 raise RuntimeError("Running cythonize failed!") 214 215 from distutils.core import Command 216 217 class PyTest(Command): 218 user_options = [] 219 def initialize_options(self): 220 pass 221 222 def finalize_options(self): 223 pass 224 225 def run(self): 226 import sys,subprocess 227 errno = subprocess.call([sys.executable, 'runtests.py']) 228 raise SystemExit(errno) 173 229 174 230 175 … … 249 194 license = 'GPL', 250 195 classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], 251 platforms = ["Windows", "Linux", "Mac OS-X", "Unix"], 252 cmdclass={"sdist": sdist_checked, "test": PyTest}, 196 platforms = ["Windows", "Linux", "Mac OS-X", "Unix"] 253 197 ) 254 198
Note: See TracChangeset
for help on using the changeset viewer.