2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Simplify the Python examples

This commit is contained in:
Thomas Nagy 2019-08-14 22:20:01 +02:00
parent d2060dfd8a
commit 397432f81e

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='.')