diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-09-22 12:05:18 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-09-27 11:38:30 -0700 |
commit | 6c88547dd0f75a29e6d1c0cd3c76d9678fa4752f (patch) | |
tree | c292e955a19f20a64f3c8595a01f85556660e06c /rhel/openvswitch.spec.in | |
parent | 484185ec4e1329bbc42cf0c0d70f24c732b748f8 (diff) | |
download | openvswitch-6c88547dd0f75a29e6d1c0cd3c76d9678fa4752f.tar.gz |
python: Backport argparse to older platforms.
Argparse has some convenient advantages over optparse including the
ability to handle optional arguments to flags. It also supports
parsing arguments as well as options.
This patch copies argparse.py from Python 2.7 into a newly created
compat directory. It made some very minor syntactic updates in the
process. Platforms which have a Python version too old to include
argparse by default will have this compat version installed as a
workaround.
Diffstat (limited to 'rhel/openvswitch.spec.in')
-rw-r--r-- | rhel/openvswitch.spec.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in index 9bd6b5836..2cf9535a5 100644 --- a/rhel/openvswitch.spec.in +++ b/rhel/openvswitch.spec.in @@ -46,7 +46,8 @@ install -m 755 rhel/etc_logrotate.d_openvswitch \ install -d -m 755 $RPM_BUILD_ROOT/usr/share/openvswitch/scripts install -m 755 rhel/usr_share_openvswitch_scripts_sysconfig.template \ $RPM_BUILD_ROOT/usr/share/openvswitch/scripts/sysconfig.template -install xenserver/uuid.py $RPM_BUILD_ROOT/usr/share/openvswitch/python +install python/compat/uuid.py $RPM_BUILD_ROOT/usr/share/openvswitch/python +install python/compat/argparse.py $RPM_BUILD_ROOT/usr/share/openvswitch/python # Get rid of stuff we don't want to make RPM happy. rm \ |