Refactor pyeclib python src tree for nosetests

pyeclib needs to be installed in order to run unit tests
which shouldn't be the case.  We should rely on in-source
modules.

This addresses issue#56.

Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
This commit is contained in:
Tushar Gohad 2014-11-20 07:00:14 -07:00
parent fa8ae33770
commit 786520d13c
6 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class ECPyECLibDriver(object):
self.handle = pyeclib_c.init(
self.k,
self.m,
ec_type.value,
ec_type.value,
hd,
self.inline_chksum,
self.algsig_chksum)

View File

@ -201,7 +201,7 @@ setup(name='PyECLib',
license='BSD',
ext_modules=[module],
packages=['pyeclib'],
package_dir={'pyeclib': 'src/python/pyeclib'},
package_dir={'pyeclib': 'pyeclib'},
cmdclass={'build': build, 'install': install, 'clean': clean},
py_modules=['pyeclib.ec_iface', 'pyeclib.core'],
test_suite='test')