Fixed a bug in setup.py

Added functions to __all__ variable in stats.core.py
master
Per.Andreas.Brodtkorb 14 years ago
parent 39d93a8f78
commit da9c0695d0

@ -19,15 +19,16 @@ import os
import sys import sys
import subprocess import subprocess
import re import re
import warnings
MAJOR = 0 MAJOR = 0
MINOR = 1 MINOR = 1
MICRO = 1 MICRO = 2
ISRELEASED = False ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
sys.argv.append("develop") #sys.argv.append("develop")
#sys.argv.append("install") #sys.argv.append("install")
DISTUTILS_DEBUG = True DISTUTILS_DEBUG = True
pkg_name = 'wafo' pkg_name = 'wafo'
@ -83,7 +84,7 @@ short_version='%(version)s'
version='%(version)s' version='%(version)s'
release=%(isrelease)s release=%(isrelease)s
""" """
fid = open(os.path.join(rootdir,filename), 'w') fid = open(os.path.join(root_dir,filename), 'w')
try: try:
fid.write(cnt % {'version': VERSION, 'isrelease': str(ISRELEASED)}) fid.write(cnt % {'version': VERSION, 'isrelease': str(ISRELEASED)})
finally: finally:
@ -93,8 +94,9 @@ if __name__=='__main__':
write_version_py() write_version_py()
packages = find_packages('src') packages = find_packages('src')
package_paths =[p.replace(pkg_name,+'.','').replace(pkg_name,'').replace('.',os.path.sep) for p in packages:
for p in packages] print(p)
package_paths =[p.replace(pkg_name+'.','').replace(pkg_name,'').replace('.',os.path.sep) for p in packages]
test_paths = [os.path.join(pkg_path,'test') for pkg_path in package_paths test_paths = [os.path.join(pkg_path,'test') for pkg_path in package_paths
if os.path.exists(os.path.join(root_dir,pkg_path,'test'))] if os.path.exists(os.path.join(root_dir,pkg_path,'test'))]
testscripts = [os.path.join(subtst, f) for subtst in test_paths testscripts = [os.path.join(subtst, f) for subtst in test_paths

@ -1,6 +1,6 @@
Metadata-Version: 1.0 Metadata-Version: 1.0
Name: wafo Name: wafo
Version: 0.11 Version: 0.1.2
Summary: UNKNOWN Summary: UNKNOWN
Home-page: http://code.google.com/p/pywafo/ Home-page: http://code.google.com/p/pywafo/
Author: WAFO-group Author: WAFO-group

@ -33,6 +33,7 @@ src/wafo/polynomial.py
src/wafo/polynomial_old.py src/wafo/polynomial_old.py
src/wafo/rindmod.pyd src/wafo/rindmod.pyd
src/wafo/sg_filter.py src/wafo/sg_filter.py
src/wafo/version.py
src/wafo/wafodata.py src/wafo/wafodata.py
src/wafo.egg-info/SOURCES.txt src/wafo.egg-info/SOURCES.txt
src/wafo/covariance/__init__.py src/wafo/covariance/__init__.py

@ -9,7 +9,8 @@ from numpy import atleast_1d, nan, ndarray, sqrt, vstack, ones, where, zeros
from numpy import arange, floor, linspace, asarray, reshape, repeat, product from numpy import arange, floor, linspace, asarray, reshape, repeat, product
__all__ = ['edf', 'edfcnd'] __all__ = ['edf', 'edfcnd','reslife', 'dispersion_idx','decluster','findpot',
'declustering_time','extremal_idx']
arr = asarray arr = asarray

Loading…
Cancel
Save