diff options
author | yyh <yyh@123.com> | 2016-01-26 18:21:34 +0800 |
---|---|---|
committer | yyh <yyh@123.com> | 2016-02-04 14:18:57 +0800 |
commit | a5878ae2f3aa82d6b9cc59d7434c2f80e28f7471 (patch) | |
tree | 209055077dc64bbf59146a59d7dddc3c17cb533c /packaging/mic.spec | |
parent | 1fd1b7a024b16dece3082bc94c760de9201dc4d7 (diff) | |
download | mic-a5878ae2f3aa82d6b9cc59d7434c2f80e28f7471.tar.gz mic-a5878ae2f3aa82d6b9cc59d7434c2f80e28f7471.tar.bz2 mic-a5878ae2f3aa82d6b9cc59d7434c2f80e28f7471.zip |
Using argparse module to parse the cmd line
Conflicts:
plugins/imager/loop_plugin.py
Diffstat (limited to 'packaging/mic.spec')
-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 1c7ffac..3756dbf 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 |