Simplify the Python examples

This commit is contained in:
Thomas Nagy 2019-08-14 22:20:01 +02:00
parent d2060dfd8a
commit 397432f81e
1 changed files with 4 additions and 6 deletions

View File

@ -52,19 +52,17 @@ def build(bld):
# Install files keeping their directory structure (default: relative_trick=True)
#
# This will create two files:
# * lib/python2.7/site-packages/nested_scripts/bar/nested_bar.py
# This will create:
# * lib/python2.7/site-packages/nested_scripts/foo/nested_foo.py
bld(features='py',
source=bld.path.ant_glob('nested_scripts/**/*.py'),
source=bld.path.ant_glob('nested_scripts/foo/*.py'),
install_from='.')
# Install files flatting the directory structure (relative_trick=False)
#
# This will create two files:
# This will create:
# * lib/python2.7/site-packages/nested_bar.py
# * lib/python2.7/site-packages/nested_foo.py
bld(features='py',
source=bld.path.ant_glob('nested_scripts/**/*.py'),
source=bld.path.ant_glob('nested_scripts/bar/*.py'),
relative_trick=False,
install_from='.')