mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-21 17:35:55 +01:00
Simplify the Python examples
This commit is contained in:
parent
d2060dfd8a
commit
397432f81e
@ -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='.')
|
||||
|
Loading…
Reference in New Issue
Block a user