Skip to content

Commit

Permalink
Merge pull request #3 from zopefoundation/remove-c-ext
Browse files Browse the repository at this point in the history
Remove the Python 2-only C extension.
  • Loading branch information
hannosch committed May 17, 2017
2 parents ed3ffb5 + 0249b7c commit 8ef252d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 531 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -4,10 +4,8 @@ dist
lib
parts

*.dll
*.pyc
*.pyo
*.so
.coverage
.installed.cfg
.tox
Expand Down
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,7 @@ Changelog
3.2 (unreleased)
----------------

- Remove the Python 2-only C extension.

3.1 (2017-04-26)
----------------
Expand Down
267 changes: 0 additions & 267 deletions include/ExtensionClass/ExtensionClass.h

This file was deleted.

26 changes: 3 additions & 23 deletions setup.py
Expand Up @@ -12,27 +12,7 @@
#
##############################################################################

from os.path import join
from setuptools import setup, find_packages, Extension
import os
import platform
import sys

# PyPy won't build the extension.
py_impl = getattr(platform, 'python_implementation', lambda: None)
is_pypy = py_impl() == 'PyPy'
is_pure = 'PURE_PYTHON' in os.environ
py3k = sys.version_info >= (3, )
if is_pypy or is_pure or py3k:
ext_modules = []
else:
ext_modules = [
Extension(
name='MultiMapping._MultiMapping',
include_dirs=['include', 'src'],
sources=[join('src', 'MultiMapping', '_MultiMapping.c')],
),
]
from setuptools import setup, find_packages

__version__ = '3.2.dev0'

Expand Down Expand Up @@ -60,10 +40,10 @@
],
author='Zope Foundation and Contributors',
author_email='zope-dev@zope.org',
long_description=open('README.txt').read() + '\n' + open('CHANGES.txt').read(),
long_description=(open('README.txt').read() + '\n' +
open('CHANGES.txt').read()),
packages=find_packages('src'),
package_dir={'': 'src'},
ext_modules=ext_modules,
install_requires=['ExtensionClass'],
include_package_data=True,
zip_safe=False,
Expand Down

0 comments on commit 8ef252d

Please sign in to comment.