Reorganized again

master
Per.Andreas.Brodtkorb 15 years ago
parent d7a654d89b
commit d0b1e917ce

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>PYWAFO</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
</natures>
</projectDescription>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?>
<pydev_project>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/PYWAFO/src</path>
</pydev_pathproperty>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
</pydev_project>

@ -0,0 +1,8 @@
'''
Runs epydoc to document pywafo
'''
import os
print('Generating html documentation for wafo in folder html.')
os.system('epydoc.py --html -o html --name wafo --graph all src/wafo')

@ -0,0 +1,22 @@
setup.py
src\wafo\__init__.py
src\wafo\dctpack.py
src\wafo\definitions.py
src\wafo\demo_sg.py
src\wafo\info.py
src\wafo\interpolate.py
src\wafo\kdetools.py
src\wafo\misc.py
src\wafo\namedtuple.py
src\wafo\objects.py
src\wafo\plotbackend.py
src\wafo\polynomial.py
src\wafo\polynomial_old.py
src\wafo\sg_filter.py
src\wafo\data\__init__.py
src\wafo\data\info.py
src\wafo\spectrum\__init__.py
src\wafo\spectrum\dispersion_relation.py
src\wafo\spectrum\models.py
src\wafo\transform\__init__.py
src\wafo\transform\models.py

@ -0,0 +1,72 @@
"""
Install wafo
Usage:
python setup.py develop
python setup.py install [, --prefix=$PREFIX]
python setup.py bdist_wininst
PyPi upload:
python setup.py sdist bdist_wininst upload --show-response
"""
#!/usr/bin/env python
import os, sys
sys.argv.append("develop")
DISTUTILS_DEBUG = True
pkg_name = 'wafo'
root_dir = os.path.join('src',pkg_name)
# make sure we import from this package, not an installed one:
sys.path.insert(0, root_dir)
import info
#import wafo
if True: #__file__ == 'setupegg.py':
# http://peak.telecommunity.com/DevCenter/setuptools
from setuptools import setup, Extension, find_packages
else:
from distutils.core import setup
subpackages = ('spectrum','data','transform','covariance')
subpackagesfull = [os.path.join(pkg_name,f) for f in subpackages]
subtests = [os.path.join(subpkg,'test') for subpkg in subpackages]
testscripts = [os.path.join(subtst, f) for subtst in subtests
for f in os.listdir(os.path.join(root_dir, subtst))
if not (f.startswith('.') or f.endswith('~') or
f.endswith('.old') or f.endswith('.bak'))]
datadir = 'data'
datafiles = [os.path.join(datadir, f) for f in os.listdir(os.path.join(root_dir, datadir))
if not (f.endswith('.py') or f.endswith('test') )]
libs = [f for f in os.listdir(os.path.join(root_dir)) if f.endswith('.pyd') ]
packagedata = testscripts + datafiles + libs #['c_library.pyd'] #,'disufq1.c','diffsumfunq.pyd','diffsumfunq.pyf','findrfc.c','rfc.pyd','rfc.pyf']
setup(
version = '0.11',
author='WAFO-group',
author_email='wafo@maths.lth.se',
decription = 'Statistical analysis and simulation of random waves and random loads',
long_description = info.__doc__,
install_requires = ['numpy>=1.3'],
license = "GPL",
url='http://www.maths.lth.se/matstat/wafo/',
name = pkg_name,
package_dir = {'': 'src'},
packages = find_packages('src'),
package_data = {'': packagedata},
#packages = [package_name,] + list(subpackagesfull),
#package_data = {package_name: packagedata},
#package_data = {'': ['wafo.cfg']},
#scripts = [os.path.join('bin', f)
# for f in os.listdir('bin')
# if not (f.startswith('.') or f.endswith('~') or
# f.endswith('.old') or f.endswith('.bak'))],
)

@ -0,0 +1,60 @@
"""
Install wafo
Usage:
python setup.py install [, --prefix=$PREFIX]
python setup.py bdist_wininst
"""
#!/usr/bin/env python
import os, sys
#sys.argv.append("develop")
sys.argv.append("install")
# make sure we import from WAFO in this package, not an installed one:
sys.path.insert(0, os.path.join('src','wafo'))
import info
#import wafo
if True :#__file__ == 'setupegg.py':
# http://peak.telecommunity.com/DevCenter/setuptools
from setuptools import setup, Extension
else:
from distutils.core import setup
package_name = "wafo"
subpackages = ('spectrum','data','transform','covariance')
subpackagesfull = [os.path.join(package_name,f) for f in subpackages]
subtests = [os.path.join(subpkg,'test') for subpkg in subpackages]
testscripts = [os.path.join(subtst, f) for subtst in subtests
for f in os.listdir(os.path.join('src',package_name,subtst))
if not (f.startswith('.') or f.endswith('~') or
f.endswith('.old') or f.endswith('.bak'))]
datadir = 'data'
datafiles = [os.path.join(datadir, f) for f in os.listdir(os.path.join('src',package_name,datadir))
if not (f.endswith('.py') or f.endswith('test') )]
#docs = [os.path.join('doc', f) for f in os.listdir('doc')]
libs = [f for f in os.listdir(os.path.join('src',package_name)) if f.endswith('.pyd') ]
packagedata = testscripts + datafiles + libs #['c_library.pyd'] #,'disufq1.c','diffsumfunq.pyd','diffsumfunq.pyf','findrfc.c','rfc.pyd','rfc.pyf']
setup(
version = '0.11',
author='WAFO-group',
author_email='wafo@maths.lth.se',
description = info.__doc__,
license = "GPL",
url='http://www.maths.lth.se/matstat/wafo/',
name = package_name.upper(),
package_dir = {'': 'src'},
packages = [package_name,] + list(subpackagesfull),
package_data = {package_name: packagedata},
#package_data = {'': ['wafo.cfg']},
#scripts = [os.path.join('bin', f)
# for f in os.listdir('bin')
# if not (f.startswith('.') or f.endswith('~') or
# f.endswith('.old') or f.endswith('.bak'))],
)

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save