Commit 70208cc5 authored by James Tocknell's avatar James Tocknell

Add python_requires to setup.py

parent 6a5a9c05
...@@ -12,6 +12,10 @@ import sys ...@@ -12,6 +12,10 @@ import sys
import platform import platform
is_cpython = platform.python_implementation() == 'CPython' is_cpython = platform.python_implementation() == 'CPython'
# this specifies which versions of python we support, pip >= 9 knows to skip
# versions of packages which are not compatible with the running python
PYTHON_REQUIRES = '>=2.6, !=3.0.*, !=3.1.*, !=3.2.*'
if sys.platform == "darwin": if sys.platform == "darwin":
# Don't create resource files on OS X tar. # Don't create resource files on OS X tar.
os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true' os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
...@@ -59,6 +63,7 @@ setup_args['package_data'] = { ...@@ -59,6 +63,7 @@ setup_args['package_data'] = {
setuptools_extra_args = {} setuptools_extra_args = {}
if 'setuptools' in sys.modules: if 'setuptools' in sys.modules:
setuptools_extra_args['python_requires'] = PYTHON_REQUIRES
setuptools_extra_args['zip_safe'] = False setuptools_extra_args['zip_safe'] = False
setuptools_extra_args['entry_points'] = { setuptools_extra_args['entry_points'] = {
'console_scripts': [ 'console_scripts': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment