summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-04-10 00:56:01 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-04-10 00:56:01 +0200
commitdc982ab1bbeb7053f865af8ef5f2af929b94a959 (patch)
treed9ecc0de5b7dc080b9eb39b331bcaea8574fff41
parentAdded cache information in report. (diff)
downloadauto-numerical-bench-0.2_beta3.tar.gz
auto-numerical-bench-0.2_beta3.tar.bz2
auto-numerical-bench-0.2_beta3.zip
Updated setup.py.0.2_beta3
-rw-r--r--setup.py23
1 files changed, 19 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index d850b17..4f366cf 100644
--- a/setup.py
+++ b/setup.py
@@ -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),
+ )
+