aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2005-05-18 18:39:23 +0000
committerChris Larson <clarson@kergoth.com>2005-05-18 18:39:23 +0000
commit156c33c33ba96a9a63c149b84f080e8b286ed1dd (patch)
tree52ad80f3c24623043022007db3b6024eed6d55b5 /setup.py
parentd575731f5719d771d2e66a9100a6c3487ffba786 (diff)
downloadbitbake-156c33c33ba96a9a63c149b84f080e8b286ed1dd.tar.gz
bitbake-156c33c33ba96a9a63c149b84f080e8b286ed1dd.tar.bz2
bitbake-156c33c33ba96a9a63c149b84f080e8b286ed1dd.zip
Change the bb.__version__ to 1.2.1, and adjust setup.py to actually import the bb module to obtain the version it uses.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 8ceb95ad0..43a9aea66 100755
--- a/setup.py
+++ b/setup.py
@@ -44,10 +44,11 @@ def generate_doc(type):
if 'bdist' in sys.argv[1:]:
generate_doc('html')
+sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'lib'))
+import bb
import glob
-__version__ = '1.2svn'
setup(name='bitbake',
- version=__version__,
+ version=bb.__version__,
license='GPL',
url='http://developer.berlios.de/projects/bitbake/',
description='BitBake build tool',
@@ -61,8 +62,8 @@ setup(name='bitbake',
os.path.join('bin', 'bbimage')],
data_files=[(os.path.join(bbdir, 'conf'), [os.path.join('conf', 'bitbake.conf')]),
(os.path.join(bbdir, 'classes'), [os.path.join('classes', 'base.bbclass')]),
- (os.path.join(docdir, 'bitbake-%s' % __version__, 'html'), glob.glob(os.path.join('doc', 'manual', 'html', '*.html'))),
- (os.path.join(docdir, 'bitbake-%s' % __version__, 'pdf'), glob.glob(os.path.join('doc', 'manual', 'pdf', '*.pdf'))),],
+ (os.path.join(docdir, 'bitbake-%s' % bb.__version__, 'html'), glob.glob(os.path.join('doc', 'manual', 'html', '*.html'))),
+ (os.path.join(docdir, 'bitbake-%s' % bb.__version__, 'pdf'), glob.glob(os.path.join('doc', 'manual', 'pdf', '*.pdf'))),],
)
if 'bdist' in sys.argv[1:]: