Moved python package into subdirectory, and fixed setup.py accordingly.
This commit is contained in:
parent
4866984e00
commit
d424f7988d
@ -7,8 +7,8 @@ __version__ = '0.0.1'
|
||||
|
||||
def test(level=1, verbosity=1):
|
||||
import os, sys
|
||||
print 'lplslib is installed in %s' % (os.path.split(__file__)[0],)
|
||||
print 'lpls ib version %s' % (__version__,)
|
||||
print 'pyblm is installed in %s' % (os.path.split(__file__)[0],)
|
||||
print 'pyblm is version %s' % (__version__,)
|
||||
print 'Python version %s' % (sys.version.replace('\n', '',),)
|
||||
from numpy.testing import NumpyTest
|
||||
return NumpyTest().test(level, verbosity)
|
17
setup.py
17
setup.py
@ -18,21 +18,21 @@ Development Status :: 4 - Beta
|
||||
Environment :: Console
|
||||
Intended Audience :: Developers
|
||||
Intended Audience :: Science/Research
|
||||
License :: OSI Approved :: GPL License
|
||||
License :: OSI Approved :: BSD License
|
||||
Operating System :: OS Independent
|
||||
Programming Language :: Python
|
||||
Topic :: Scientific/Engineering
|
||||
Topic :: Software Development :: Libraries :: Python Modules
|
||||
"""
|
||||
|
||||
import __init__
|
||||
from pyblm import __version__
|
||||
|
||||
def configuration(parent_package='',top_path=None):
|
||||
from numpy.distutils.misc_util import Configuration
|
||||
config = Configuration('lplslib', parent_package, top_path)
|
||||
config = Configuration('', parent_package, top_path)
|
||||
config.add_data_dir('tests')
|
||||
#config.add_data_files(['lplslib',('COPYING','README')])
|
||||
#config.add_subpackage('lplslib')
|
||||
config.add_subpackage('pyblm')
|
||||
return config
|
||||
|
||||
if __name__ == "__main__":
|
||||
@ -40,11 +40,12 @@ if __name__ == "__main__":
|
||||
config = configuration(top_path='').todict()
|
||||
config['author'] = 'Arnar Flatberg'
|
||||
config['author_email'] = 'arnar.flatberg at gmail.com'
|
||||
config['short_description'] = short_description
|
||||
# config['short_description'] = short_description
|
||||
config['long_description'] = long_description
|
||||
config['url'] = 'http://dev.pvv.org'
|
||||
config['version'] = __init__.__version__
|
||||
config['license'] = 'GPL v2'
|
||||
config['url'] = 'https://dev.pvv.org/projects/pyblm'
|
||||
config['version'] = __version__
|
||||
config['license'] = 'BSD'
|
||||
config['platforms'] = ['Linux']
|
||||
config['classifiers'] = filter(None, classifiers.split('\n'))
|
||||
setup(**config)
|
||||
|
||||
|
@ -4,7 +4,7 @@ from math import sqrt as msqrt
|
||||
|
||||
from numpy.testing import *
|
||||
set_package_path()
|
||||
from lplslib import lpls
|
||||
from pyblm import lpls
|
||||
from numpy import dot, eye, random,asarray,empty
|
||||
from numpy.random import rand, randn
|
||||
from numpy.linalg import svd,norm
|
||||
|
Reference in New Issue
Block a user