diff options
author | yyh <yyh@123.com> | 2016-01-26 18:21:34 +0800 |
---|---|---|
committer | SoonKyu Park <sk7.park@samsung.com> | 2016-06-11 20:37:05 +0900 |
commit | c3af098e67ce9624f1995eaf1e931f43e00f1ed1 (patch) | |
tree | cf7cd67055c85fdb59f4e7fcc1b7b937b9e4a0f3 /packaging | |
parent | 79548a1ab34856d2a2197abceca0d21dd813128b (diff) | |
download | mic-c3af098e67ce9624f1995eaf1e931f43e00f1ed1.tar.gz mic-c3af098e67ce9624f1995eaf1e931f43e00f1ed1.tar.bz2 mic-c3af098e67ce9624f1995eaf1e931f43e00f1ed1.zip |
Using argparse module to parse the cmd line
Conflicts:
plugins/imager/loop_plugin.py
Conflicts:
plugins/imager/loop_plugin.py
Change-Id: I19facc99768379c75f1794045d7faf0246000169
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/mic.spec | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/mic.spec b/packaging/mic.spec index 4a887b7..08fecc4 100644 --- a/packaging/mic.spec +++ b/packaging/mic.spec @@ -1,4 +1,5 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_version: %define python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])")} %define rc_version 0 @@ -22,6 +23,10 @@ Requires: python-urlgrabber >= 3.9.0 Requires: python-xml %endif +%if "%{?python_version}" < "2.7" +Requires: python-argparse +%endif + %if 0%{?tizen_version:1} Requires: python-rpm %else |