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