diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/env python #===================================================== -# Copyright (C) 2011 Andrea Arteaga <andyspiros@gmail.com> +# Copyright (C) 2011-2012 Andrea Arteaga <andyspiros@gmail.com> #===================================================== # # This program is free software; you can redistribute it and/or @@ -18,13 +18,28 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # +import os from distutils.core import setup +def recursiveGetPackage(pkg, directory): + pkg += os.path.basename(directory) + dirs = [os.path.join(directory, i) for i in os.listdir(directory)] + dirs = [i for i in dirs if os.path.isdir(i)] + res = [pkg] + for i in dirs: + res += recursiveGetPackage(pkg+'.', i) + return res + +setupdir = os.path.dirname(os.path.abspath(__file__)) +numdir = os.path.join(setupdir, 'numbench') + + setup(name='Numbench', version='1.0', description='Numerical benchmarks for Gentoo', author='Andrea Arteaga', author_email='andyspiros@gmail.com', - url='http://git.overlays.gentoo.org/gitweb/?p=proj/auto-numerical-bench.git', - packages=['numbench'], - )
\ No newline at end of file + url='http://soc.dev.gentoo.org/~spiros', + packages=recursiveGetPackage('', numdir), + ) + |