Tools, scripts, apps and functions to run fast source and ground shaking estimation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

88 lines
2.1 KiB

from __future__ import absolute_import, division, print_function
import os
import os.path as op
from setuptools import setup
from setuptools.command.install import install
try:
import numpy
except ImportError:
class numpy():
def __init__(self):
pass
@classmethod
def get_include(self):
return ''
packname = 'ewrica'
version = '2020.07.06'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_readme_paths():
paths = []
for (path, dirnames, filenames) in os.walk(
op.join(op.dirname(__file__), 'src')):
paths.extend(
[op.join(path.split('/', 1)[1], fn) for fn in filenames if
fn == 'README.md'])
return paths
class CustomInstallCommand(install):
def run(self):
install.run(self)
packages = [
'%s' % packname,
'%s.dataset' % packname,
'%s.apps' % packname]
# entry_points = {
# 'console_scripts':
# [
# 'gm_map = %s.apps.gm_map:main' % packname]}
setup(
cmdclass={'install': CustomInstallCommand},
name=packname,
version=version,
author='mmetz',
author_email='mmetz@gfz-potsdam.de',
description='Tools for Usage in EWRICA project',
long_description=read('README.md'),
license='GPLv3',
keywords=[
'pyrocko', 'ewrica'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
install_requires=[],
extras_require={
'console_scripts': ['PyQt5']
},
packages=packages,
package_dir={'ewrica': 'src'},
# entry_points=entry_points,
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Development Status :: 1 - Planning',
'Intended Audience :: Other Audience',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Operating System :: POSIX',
'Topic :: Games/Entertainment :: Simulation'],
package_data={
packname: ['data/tsumaps_all_params.*',
] + get_readme_paths()}
)