Brad Bishop | bba7f8c | 2016-11-10 09:32:58 -0500 | [diff] [blame] | 1 | from distutils.core import setup |
Adriana Kobylak | dadf83a | 2017-03-01 10:25:08 -0600 | [diff] [blame^] | 2 | from distutils.command.build import build |
| 3 | from distutils.dir_util import copy_tree |
| 4 | |
| 5 | |
| 6 | class CustomBuild(build): |
| 7 | def run(self): |
| 8 | if ('@top_srcdir@' != '@top_builddir@'): |
| 9 | copy_tree('@top_srcdir@/tools/', '@top_builddir@/tools/', update=1) |
Brad Bishop | bba7f8c | 2016-11-10 09:32:58 -0500 | [diff] [blame] | 10 | |
| 11 | setup(name='sdbusplus', |
| 12 | version='1.0', |
Adriana Kobylak | dadf83a | 2017-03-01 10:25:08 -0600 | [diff] [blame^] | 13 | package_dir={'':'@top_builddir@/tools'}, |
Brad Bishop | bba7f8c | 2016-11-10 09:32:58 -0500 | [diff] [blame] | 14 | packages=['sdbusplus'], |
Adriana Kobylak | dadf83a | 2017-03-01 10:25:08 -0600 | [diff] [blame^] | 15 | scripts=['@top_builddir@/tools/sdbus++'], |
| 16 | cmdclass={'build': CustomBuild}, |
Brad Bishop | bba7f8c | 2016-11-10 09:32:58 -0500 | [diff] [blame] | 17 | package_data={'sdbusplus': ['templates/*.mako.*']}, |
| 18 | ) |