Skip to content

Commit

Permalink
Merge pull request #1 from zopefoundation/remove-c-ext
Browse files Browse the repository at this point in the history
Remove C extension
  • Loading branch information
hannosch committed May 16, 2017
2 parents aaef300 + e6ee94f commit 91862b2
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 605 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -4,10 +4,8 @@ dist
lib
parts

*.dll
*.pyc
*.pyo
*.so
.installed.cfg
develop-eggs/
eggs/
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,7 @@ Changelog
3.3 (unreleased)
----------------

- Remove the Python 2-only C extension.

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

This file was deleted.

25 changes: 1 addition & 24 deletions setup.py
Expand Up @@ -12,33 +12,11 @@
#
##############################################################################

import os
from os.path import join
import platform
import sys

from setuptools import setup, find_packages, Extension
from setuptools import setup, find_packages

README = open('README.rst').read()
CHANGES = open('CHANGES.rst').read()

# 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='Missing._Missing',
include_dirs=['include', 'src'],
sources=[join('src', 'Missing', '_Missing.c')],
depends=[join('include', 'ExtensionClass', 'ExtensionClass.h')]),
]


__version__ = '3.3.dev0'

setup(
Expand Down Expand Up @@ -68,7 +46,6 @@
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
ext_modules=ext_modules,
install_requires=['ExtensionClass >= 4.1a1'],
include_package_data=True,
zip_safe=False,
Expand Down

0 comments on commit 91862b2

Please sign in to comment.