blob: 4bc00e49d3d5c01f0ced997b1bf16955595c7d25 [file] [log] [blame]
Brad Bishopbba7f8c2016-11-10 09:32:58 -05001from distutils.core import setup
Adriana Kobylakdadf83a2017-03-01 10:25:08 -06002from distutils.command.build import build
3from distutils.dir_util import copy_tree
4
5
6class CustomBuild(build):
7 def run(self):
8 if ('@top_srcdir@' != '@top_builddir@'):
9 copy_tree('@top_srcdir@/tools/', '@top_builddir@/tools/', update=1)
Brad Bishopbba7f8c2016-11-10 09:32:58 -050010
11setup(name='sdbusplus',
12 version='1.0',
Adriana Kobylakdadf83a2017-03-01 10:25:08 -060013 package_dir={'':'@top_builddir@/tools'},
Brad Bishopbba7f8c2016-11-10 09:32:58 -050014 packages=['sdbusplus'],
Adriana Kobylakdadf83a2017-03-01 10:25:08 -060015 scripts=['@top_builddir@/tools/sdbus++'],
16 cmdclass={'build': CustomBuild},
Brad Bishopbba7f8c2016-11-10 09:32:58 -050017 package_data={'sdbusplus': ['templates/*.mako.*']},
18 )