Commit 314a374f authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed MANIFEST and MNIST database handling.

parent c8005632
include README.rst bootstrap.py buildout.cfg
recursive-include docs *.py *.rst
recursive-include bob/learn/boosting/cpp *.h *.cpp
recursive-include bob/learn/boosting *.h *.cpp
recursive-include bob/learn/boosting/data *.hdf5
......@@ -30,6 +30,3 @@ def test_example_mnist():
mnist.main(options)
if __name__ == '__main__':
test_machine()
......@@ -11,7 +11,7 @@ class MNIST:
def __init__(self):
# loads the MNIST data from the packed data file
tar = bob.io.base.test_utils.datafile("mnist.tar.bz2", __name__)
temp_dir = tempfile.mkdtemp(prefix="bob_boosting_", suffix = "hdf5")[1]
temp_dir = tempfile.mkdtemp(prefix="bob_boosting_", suffix = "hdf5")
f = tarfile.open(tar, 'r')
f.extractall(temp_dir)
......@@ -30,6 +30,8 @@ class MNIST:
self._data[group] = data
self._labels[group] = labels
hdf5.cd('..')
del hdf5
shutil.rmtree(temp_dir)
def data(self, groups = ('train', 'test'), labels=range(10)):
......
......@@ -25,6 +25,9 @@ from setuptools import setup, find_packages, dist
dist.Distribution(dict(setup_requires=['bob.blitz'] + bob_packages))
from bob.blitz.extension import Extension, Library, build_ext
packages = ['boost']
boost_modules = ['system']
version = "2.0.0a0"
# The only thing we do in this file is to call the setup() function with all
......@@ -76,6 +79,8 @@ setup(
],
bob_packages = bob_packages,
version = version,
packages = packages,
boost_modules = boost_modules,
),
Library(
......@@ -92,6 +97,8 @@ setup(
],
bob_packages = bob_packages,
version = version,
packages = packages,
boost_modules = boost_modules,
),
Extension(
......@@ -110,6 +117,8 @@ setup(
],
bob_packages = bob_packages,
version = version,
packages = packages,
boost_modules = boost_modules,
),
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment