2 # ex:ts=4:sw=4:sts=4:et
3 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
5 # Copyright (C) 2003 Chris Larson
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 2 as
9 # published by the Free Software Foundation.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 sys
.path
.append(os
.path
.join(os
.path
.dirname(__file__
), "lib"))
22 from bb
import __version__
25 from distutils
.command
.clean
import clean
26 from distutils
.command
.build
import build
27 from distutils
.core
import setup
35 origpath
= os
.path
.abspath(os
.curdir
)
36 os
.chdir(os
.path
.join(origpath
, 'doc', 'manual'))
37 make
= os
.environ
.get('MAKE') or 'make'
38 os
.system('%s clean-%s' % (make
, doctype
))
43 origpath
= os
.path
.abspath(os
.curdir
)
44 os
.chdir(os
.path
.join(origpath
, 'doc', 'manual'))
45 make
= os
.environ
.get('MAKE') or 'make'
46 ret
= os
.system('%s %s' % (make
, doctype
))
48 print("ERROR: Unable to generate html documentation.")
53 version
= __version__
,
54 requires
= ["ply", "progressbar"],
55 package_dir
= {"": "lib"},
56 packages
= ["bb.server", "bb.parse.parse_py", "bb.parse", "bb.fetch",
57 "bb.fetch2", "bb.ui.crumbs", "bb.ui", "bb.pysh", "bb"],
58 py_modules
= ["codegen"],
59 scripts
= ["bin/bitbake", "bin/bitbake-layers", "bin/bitbake-diffsigs"],
60 data_files
= [("share/bitbake", glob("conf/*") + glob("classes/*")),
61 ("share/doc/bitbake-%s/manual" % __version__
, glob("doc/manual/html/*"))],
68 url
= 'http://developer.berlios.de/projects/bitbake/',
69 description
= 'BitBake build tool',
70 long_description
= 'BitBake is a simple tool for the execution of tasks. It is derived from Portage, which is the package management system used by the Gentoo Linux distribution. It is most commonly used to build packages, as it can easily use its rudimentary inheritance to abstract common operations, such as fetching sources, unpacking them, patching them, compiling them, and so on. It is the basis of the OpenEmbedded project, which is being used for OpenZaurus, Familiar, and a number of other Linux distributions.',
71 author
= 'BitBake Development Team',
72 author_email
= 'bitbake-dev@lists.berlios.de',