Pārlūkot izejas kodu

Merge pull request #57 from valhallasw/setup-version-exception

setup.py: Raise Exception on unsupported platforms
tags/v0.3.3
Ben Kurtovic pirms 11 gadiem
vecāks
revīzija
377b08747c
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. +6
    -0
      setup.py

+ 6
- 0
setup.py Parādīt failu

@@ -21,6 +21,12 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import sys

if (sys.version_info[0] == 2 and sys.version_info[1] < 7) or \
(sys.version_info[1] == 3 and sys.version_info[1] < 2):
raise Exception('mwparserfromhell needs Python 2.7+ or 3.2+')

from setuptools import setup, find_packages, Extension

from mwparserfromhell import __version__


Notiek ielāde…
Atcelt
Saglabāt