Hello Shantanu, you can use `python_requires` in your setup.py as in https://github.com/pypa/pip/blob/55c43aa3643132b83e85fbacfa0e0a64b7bf558c/setup.py#L79 for example. This will add Requires-Python ( https://www.python.org/dev/peps/pep-0345/#requires-python) to your package's metadata.
But pip only checks Requires-Python since version 9. Xavier On Fri, May 12, 2017 at 12:16 AM, <knowshant...@gmail.com> wrote: > > Hi, > > I was wondering if there is any way to specify supported Python version in > pip/setuptools. > > For example, is there anyway to exit package installation if supported > Python version is not being used during 'pip install'? > > Thanks, > Shantanu > > > -- > You received this message because you are subscribed to the Google Groups > "virtualenv" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python-virtualenv+unsubscr...@googlegroups.com. > To post to this group, send email to python-virtualenv@googlegroups.com. > Visit this group at https://groups.google.com/group/python-virtualenv. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "virtualenv" group. To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscr...@googlegroups.com. To post to this group, send email to python-virtualenv@googlegroups.com. Visit this group at https://groups.google.com/group/python-virtualenv. For more options, visit https://groups.google.com/d/optout.