Skip to content

Commit

Permalink
Improved check for CPython (fixes issue #58).
Browse files Browse the repository at this point in the history
  • Loading branch information
xitology committed Aug 25, 2016
1 parent 153a194 commit 16bd7d0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
]
Expand All @@ -57,7 +54,7 @@
"""


import sys, os.path
import sys, os.path, platform

from distutils import log
from distutils.core import setup, Command
Expand Down Expand Up @@ -119,7 +116,8 @@ def has_ext_modules(self):
return False

def ext_status(self, ext):
if 'Java' in sys.version or 'IronPython' in sys.version or 'PyPy' in sys.version:
implementation = platform.python_implementation()
if implementation != 'CPython':
return False
if isinstance(ext, Extension):
with_ext = getattr(self, ext.attr_name)
Expand Down

0 comments on commit 16bd7d0

Please sign in to comment.