Skip to content

Commit

Permalink
Add Python version filter on setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed May 8, 2017
1 parent 4c9fad2 commit cb75321
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/usr/bin/env python2
from __future__ import print_function
import sys
from setuptools import setup, Extension

from sstpd import __version__ as version


if sys.version_info > (3, ):
print("""\nthis version of sstp-server is for Python 2.7,
please install v0.5 or above for Python 3.""", file=sys.stderr)
sys.exit(1)

with open('README.rst') as readme:
long_description = readme.read()

Expand Down Expand Up @@ -34,6 +41,7 @@
'Topic :: Internet :: Proxy Servers',
'License :: OSI Approved :: MIT License'
],
long_description=long_description
long_description=long_description,
python_requires='==2.7.*'
)

0 comments on commit cb75321

Please sign in to comment.